net.minecraft.advancements

public record Advancement

ae
net.minecraft.advancements.Advancement
net.minecraft.class_161
net.minecraft.advancement.Advancement
net.minecraft.src.C_5362_
net.minecraft.advancements.Advancement

Field summary

Modifier and TypeField
private final Optional<ResourceLocation>
a
parent
comp_1912
parent
f_138298_
private final Optional<DisplayInfo>
b
display
comp_1913
display
f_138299_
private final AdvancementRewards
c
rewards
comp_1914
rewards
f_138300_
private final Map<String, Criterion<?>>
d
criteria
comp_1915
criteria
f_138302_
private final AdvancementRequirements
e
requirements
comp_1916
requirements
f_138303_
private final boolean
f
sendsTelemetryEvent
comp_1917
sendsTelemetryEvent
f_285575_
private final Optional<Component>
g
name
comp_1918
name
f_291795_

Constructor summary

ModifierConstructor
public (Optional<ResourceLocation> parent, Optional<DisplayInfo> display, AdvancementRewards rewards, Map<String, Criterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent)
public (Optional<ResourceLocation> f_138299_, Optional<DisplayInfo> f_138300_, AdvancementRewards f_138302_, Map<String, Criterion<?>> f_138303_, AdvancementRequirements f_285575_, boolean f_291795_, Optional<Component> arg6)

Method summary

Modifier and TypeMethod
private static Component
a(aq arg0)
decorateName(DisplayInfo arg0)
method_53623(class_185 arg0)
createNameFromDisplay(AdvancementDisplay display)
m_294861_(C_237_ p_300038_)
public static Component
a(af arg0)
name(AdvancementHolder arg0)
method_53622(class_8779 arg0)
getNameFromIdentity(AdvancementEntry identifiedAdvancement)
m_292915_(C_290295_ p_297556_)
public com.google.gson.JsonObject
a()
serializeToJson()
method_53621()
toJson()
m_294498_()
public static Advancement
a(com.google.gson.JsonObject arg0, bg arg1)
fromJson(com.google.gson.JsonObject arg0, DeserializationContext arg1)
method_53626(com.google.gson.JsonObject arg0, class_5257 arg1)
fromJson(com.google.gson.JsonObject json, AdvancementEntityPredicateDeserializer predicateDeserializer)
m_294730_(com.google.gson.JsonObject p_300691_, C_723_ p_300053_)
public void
a(so arg0)
write(FriendlyByteBuf arg0)
method_53627(class_2540 arg0)
write(PacketByteBuf buf)
m_295649_(C_4983_ arg0)
public static Advancement
b(so arg0)
read(FriendlyByteBuf arg0)
method_53632(class_2540 arg0)
read(PacketByteBuf buf)
m_293151_(C_4983_ p_300670_)
public boolean
b()
isRoot()
method_53630()
isRoot()
m_295578_()
public Optional<ResourceLocation>
c()
parent()
comp_1912()
parent()
f_138298_()
public Optional<DisplayInfo>
d()
display()
comp_1913()
display()
f_138299_()
public AdvancementRewards
e()
rewards()
comp_1914()
rewards()
f_138300_()
public Map<String, Criterion<?>>
f()
criteria()
comp_1915()
criteria()
f_138302_()
public AdvancementRequirements
g()
requirements()
comp_1916()
requirements()
f_138303_()
public boolean
h()
sendsTelemetryEvent()
comp_1917()
sendsTelemetryEvent()
f_285575_()
public Optional<Component>
i()
name()
comp_1918()
name()
f_291795_()