net.minecraft.advancements

public record Advancement

ah
net.minecraft.advancements.Advancement
net.minecraft.class_161
net.minecraft.advancement.Advancement
net.minecraft.advancements.Advancement

Field summary

Modifier and TypeField
private final Optional<ResourceLocation>
c
parent
comp_1912
parent
private final Optional<DisplayInfo>
d
display
comp_1913
display
private final AdvancementRewards
e
rewards
comp_1914
rewards
private final Map<String, Criterion<?>>
f
criteria
comp_1915
criteria
private final AdvancementRequirements
g
requirements
comp_1916
requirements
private final boolean
h
sendsTelemetryEvent
comp_1917
sendsTelemetryEvent
private final Optional<Component>
i
name
comp_1918
name
private static final com.mojang.serialization.Codec<Map<String, Criterion<?>>>
j
CRITERIA_CODEC
field_47180
CRITERIA_CODEC
public static final com.mojang.serialization.Codec<Advancement>
a
CODEC
field_47179
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Advancement>
b
STREAM_CODEC
field_47996
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Optional<ResourceLocation> parent, Optional<DisplayInfo> display, AdvancementRewards rewards, Map<String, Criterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent)
public (Optional<ResourceLocation> arg0, Optional<DisplayInfo> arg1, AdvancementRewards arg2, Map<String, Criterion<?>> arg3, AdvancementRequirements arg4, boolean arg5, Optional<Component> arg6)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.DataResult<Advancement>
a(ah arg0)
validate(Advancement arg0)
method_54910(class_161 arg0)
validate(Advancement advancement)
private static Component
a(au arg0)
decorateName(DisplayInfo arg0)
method_53623(class_185 arg0)
createNameFromDisplay(AdvancementDisplay display)
public static Component
a(ai arg0)
name(AdvancementHolder arg0)
method_53622(class_8779 arg0)
getNameFromIdentity(AdvancementEntry identifiedAdvancement)
private void
a(wa arg0)
write(RegistryFriendlyByteBuf arg0)
method_53627(class_9129 arg0)
write(RegistryByteBuf buf)
private static Advancement
b(wa arg0)
read(RegistryFriendlyByteBuf arg0)
method_53632(class_9129 arg0)
read(RegistryByteBuf buf)
public boolean
a()
isRoot()
method_53630()
isRoot()
public void
a(azf arg0, js$a arg1)
validate(ProblemReporter arg0, HolderGetter$Provider arg1)
method_54912(class_8942 arg0, class_7871$class_7872 arg1)
validate(ErrorReporter errorReporter, RegistryEntryLookup$RegistryLookup lookup)
public Optional<ResourceLocation>
b()
parent()
comp_1912()
parent()
public Optional<DisplayInfo>
c()
display()
comp_1913()
display()
public AdvancementRewards
d()
rewards()
comp_1914()
rewards()
public Map<String, Criterion<?>>
e()
criteria()
comp_1915()
criteria()
public AdvancementRequirements
f()
requirements()
comp_1916()
requirements()
public boolean
g()
sendsTelemetryEvent()
comp_1917()
sendsTelemetryEvent()
public Optional<Component>
h()
name()
comp_1918()
name()