net.minecraft.advancements

public record Advancement

af
net.minecraft.advancements.Advancement
net.minecraft.class_161
net.minecraft.unmapped.C_kdwyuhdb
net.minecraft.advancement.Advancement
net.minecraft.advancement.Advancement
net.minecraft.src.C_5362_
net.minecraft.advancements.Advancement

Field summary

Modifier and TypeField
private final Optional<ResourceLocation>
c
parent
comp_1912
f_cbfwvpgh
parent
parent
f_138298_
private final Optional<DisplayInfo>
d
display
comp_1913
f_eykiurph
display
display
f_138299_
private final AdvancementRewards
e
rewards
comp_1914
f_uhuyjydl
rewards
rewards
f_138300_
private final Map<String, Criterion<?>>
f
criteria
comp_1915
f_eqsfnrjr
criteria
criteria
f_138302_
private final AdvancementRequirements
g
requirements
comp_1916
f_emngvigd
requirements
requirements
f_138303_
private final boolean
h
sendsTelemetryEvent
comp_1917
f_nwvdgawt
sendsTelemetryEvent
sendsTelemetryEvent
f_285575_
private final Optional<Component>
i
name
comp_1918
f_njhcraol
name
name
f_291795_
private static final com.mojang.serialization.Codec<Map<String, Criterion<?>>>
j
CRITERIA_CODEC
field_47180
f_bpbcihch
CRITERIA_CODEC
CRITERIA_CODEC
f_302506_
public static final com.mojang.serialization.Codec<Advancement>
a
CODEC
field_47179
f_ncipkedb
CODEC
CODEC
f_303179_
public static final StreamCodec<RegistryFriendlyByteBuf, Advancement>
b
STREAM_CODEC
field_47996
f_bihtcblh
PACKET_CODEC
PACKET_CODEC
f_315156_

Constructor summary

ModifierConstructor
public (Optional<ResourceLocation> parent, Optional<DisplayInfo> display, AdvancementRewards rewards, Map<String, Criterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent)
public (Optional<ResourceLocation> parent, Optional<DisplayInfo> display, AdvancementRewards rewards, Map<String, Criterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent, Optional<Component> name)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.DataResult<Advancement>
a(af arg0)
validate(Advancement arg0)
method_54910(class_161 arg0)
m_pzwagfwo(C_kdwyuhdb arg0)
validate(Advancement advancement)
validate(Advancement advancement)
m_307846_(C_5362_ p_312373_)
private static Component
a(as arg0)
decorateName(DisplayInfo arg0)
method_53623(class_185 arg0)
m_xbcnitcp(C_bvqakncm arg0)
createNameFromDisplay(AdvancementDisplay display)
createText(AdvancementDisplay display)
m_294861_(C_237_ p_300038_)
public static Component
a(ag arg0)
name(AdvancementHolder arg0)
method_53622(class_8779 arg0)
m_swogstqz(C_unoypvme arg0)
getNameFromIdentity(AdvancementEntry identifiedAdvancement)
getText(AdvancementHolder advancementHolder)
m_292915_(C_290295_ p_297556_)
private void
a(wk arg0)
write(RegistryFriendlyByteBuf arg0)
method_53627(class_9129 arg0)
m_xfimowjn(C_bngyzsts arg0)
write(RegistryByteBuf buf)
toPacket(RegistryByteBuf requirements)
m_295649_(C_313350_ arg0)
private static Advancement
b(wk arg0)
read(RegistryFriendlyByteBuf arg0)
method_53632(class_9129 arg0)
m_hpxxrezd(C_bngyzsts arg0)
read(RegistryByteBuf buf)
fromPacket(RegistryByteBuf requirements)
m_293151_(C_313350_ p_328348_)
public boolean
a()
isRoot()
method_53630()
m_wsihwdxp()
isRoot()
empty()
m_295578_()
public void
a(ayu arg0, jn$a arg1)
validate(ProblemReporter arg0, HolderGetter$Provider arg1)
method_54912(class_8942 arg0, class_7871$class_7872 arg1)
m_mmibtmoe(C_jtpvewkp arg0, C_pzdchrcy$C_pbvqpmst arg1)
validate(ErrorReporter errorReporter, RegistryEntryLookup$RegistryLookup lookup)
validate(ErrorReporter errorReporter, HolderProvider$Provider lookup)
m_306920_(C_302123_ p_335087_, C_254583_$C_254596_ arg1)
public Optional<ResourceLocation>
b()
parent()
comp_1912()
m_htjukofs()
parent()
parent()
f_138298_()
public Optional<DisplayInfo>
c()
display()
comp_1913()
m_wngxatfp()
display()
display()
f_138299_()
public AdvancementRewards
d()
rewards()
comp_1914()
m_ofikdsfj()
rewards()
rewards()
f_138300_()
public Map<String, Criterion<?>>
e()
criteria()
comp_1915()
m_xazdqguv()
criteria()
criteria()
f_138302_()
public AdvancementRequirements
f()
requirements()
comp_1916()
m_vdmpoqil()
requirements()
requirements()
f_138303_()
public boolean
g()
sendsTelemetryEvent()
comp_1917()
m_ggypmlkv()
sendsTelemetryEvent()
sendsTelemetryEvent()
f_285575_()
public Optional<Component>
h()
name()
comp_1918()
m_vfnevnhx()
name()
name()
f_291795_()