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>
c
parent
comp_1912
parent
f_138298_
private final Optional<DisplayInfo>
d
display
comp_1913
display
f_138299_
private final AdvancementRewards
e
rewards
comp_1914
rewards
f_138300_
private final Map<String, Criterion<?>>
f
criteria
comp_1915
criteria
f_138302_
private final AdvancementRequirements
g
requirements
comp_1916
requirements
f_138303_
private final boolean
h
sendsTelemetryEvent
comp_1917
sendsTelemetryEvent
f_285575_
private final Optional<Component>
i
name
comp_1918
name
f_291795_
private static final com.mojang.serialization.Codec<Map<String, Criterion<?>>>
j
CRITERIA_CODEC
field_47180
CRITERIA_CODEC
f_302506_
public static final com.mojang.serialization.Codec<Advancement>
a
CODEC
field_47179
CODEC
f_303179_
public static final StreamCodec<RegistryFriendlyByteBuf, Advancement>
b
STREAM_CODEC
field_47996
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> display, Optional<DisplayInfo> rewards, AdvancementRewards criteria, Map<String, Criterion<?>> requirements, AdvancementRequirements sendsTelemetryEvent, boolean name, Optional<Component> arg6)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.DataResult<Advancement>
a(ae arg0)
validate(Advancement arg0)
method_54910(class_161 arg0)
validate(Advancement advancement)
m_307846_(C_5362_ p_312373_)
private static Component
a(ar 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_)
private void
a(xa arg0)
write(RegistryFriendlyByteBuf arg0)
method_53627(class_9129 arg0)
write(RegistryByteBuf buf)
m_295649_(C_313350_ arg0)
private static Advancement
b(xa arg0)
read(RegistryFriendlyByteBuf arg0)
method_53632(class_9129 arg0)
read(RegistryByteBuf buf)
m_293151_(C_313350_ p_328348_)
public boolean
a()
isRoot()
method_53630()
isRoot()
m_295578_()
public void
a(azf arg0, jj$a arg1)
validate(ProblemReporter arg0, HolderGetter$Provider arg1)
method_54912(class_8942 arg0, class_7871$class_7872 arg1)
validate(ErrorReporter errorReporter, RegistryEntryLookup$RegistryLookup lookup)
m_306920_(C_302123_ p_335087_, C_254583_$C_254596_ arg1)
public Optional<ResourceLocation>
b()
parent()
comp_1912()
parent()
f_138298_()
public Optional<DisplayInfo>
c()
display()
comp_1913()
display()
f_138299_()
public AdvancementRewards
d()
rewards()
comp_1914()
rewards()
f_138300_()
public Map<String, Criterion<?>>
e()
criteria()
comp_1915()
criteria()
f_138302_()
public AdvancementRequirements
f()
requirements()
comp_1916()
requirements()
f_138303_()
public boolean
g()
sendsTelemetryEvent()
comp_1917()
sendsTelemetryEvent()
f_285575_()
public Optional<Component>
h()
name()
comp_1918()
name()
f_291795_()