Package net.minecraft.advancement
Record Class Advancement
java.lang.Object
java.lang.Record
net.minecraft.advancement.Advancement
- Record Components:
- parent-
- display-
- rewards-
- criteria-
- requirements-
- sendsTelemetryEvent-
- name-
public record Advancement(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String,AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent, Optional<Text> name)
extends Record 
- Mappings:
- Namespace - Name - named - net/minecraft/advancement/Advancement- intermediary - net/minecraft/class_161- official - ah- named - parent- intermediary - comp_1912- official - c- named - display- intermediary - comp_1913- official - d- named - rewards- intermediary - comp_1914- official - e- named - criteria- intermediary - comp_1915- official - f- named - requirements- intermediary - comp_1916- official - g- named - sendsTelemetryEvent- intermediary - comp_1917- official - h- named - name- intermediary - comp_1918- official - i
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Advancement> private final Map<String, AdvancementCriterion<?>> The field for thecriteriarecord component.private static final com.mojang.serialization.Codec<Map<String, AdvancementCriterion<?>>> private final Optional<AdvancementDisplay> The field for thedisplayrecord component.The field for thenamerecord component.static final PacketCodec<RegistryByteBuf, Advancement> private final Optional<Identifier> The field for theparentrecord component.private final AdvancementRequirementsThe field for therequirementsrecord component.private final AdvancementRewardsThe field for therewardsrecord component.private final booleanThe field for thesendsTelemetryEventrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionAdvancement(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String, AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent) Advancement(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, AdvancementRequirements advancementRequirements, boolean bool, Optional<Text> optional3) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static TextcreateNameFromDisplay(AdvancementDisplay display) criteria()Returns the value of thecriteriarecord component.display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.static TextgetNameFromIdentity(AdvancementEntry identifiedAdvancement) final inthashCode()Returns a hash code value for this object.booleanisRoot()name()Returns the value of thenamerecord component.parent()Returns the value of theparentrecord component.private static Advancementread(RegistryByteBuf buf) Returns the value of therequirementsrecord component.rewards()Returns the value of therewardsrecord component.booleanReturns the value of thesendsTelemetryEventrecord component.final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<Advancement> validate(Advancement advancement) voidvalidate(ErrorReporter errorReporter, RegistryEntryLookup.RegistryLookup lookup) private voidwrite(RegistryByteBuf buf) 
- 
Field Details- 
parentThe field for theparentrecord component.
- 
displayThe field for thedisplayrecord component.
- 
rewardsThe field for therewardsrecord component.
- 
criteriaThe field for thecriteriarecord component.
- 
requirementsThe field for therequirementsrecord component.
- 
sendsTelemetryEventprivate final boolean sendsTelemetryEventThe field for thesendsTelemetryEventrecord component.
- 
nameThe field for thenamerecord component.
- 
CRITERIA_CODECprivate static final com.mojang.serialization.Codec<Map<String,AdvancementCriterion<?>>> CRITERIA_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CRITERIA_CODEC- Lnet/minecraft/advancement/Advancement;CRITERIA_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_47180- Lnet/minecraft/class_161;field_47180:Lcom/mojang/serialization/Codec;- official - j- Lah;j:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/advancement/Advancement;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_47179- Lnet/minecraft/class_161;field_47179:Lcom/mojang/serialization/Codec;- official - a- Lah;a:Lcom/mojang/serialization/Codec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/advancement/Advancement;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_47996- Lnet/minecraft/class_161;field_47996:Lnet/minecraft/class_9139;- official - b- Lah;b:Lyn;
 
 
- 
- 
Constructor Details- 
Advancementpublic Advancement(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String, AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/advancement/Advancement;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/advancement/AdvancementRewards;Ljava/util/Map;Lnet/minecraft/advancement/AdvancementRequirements;Z)V- intermediary - <init>- Lnet/minecraft/class_161;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_170;Ljava/util/Map;Lnet/minecraft/class_8782;Z)V- official - <init>- Lah;<init>(Ljava/util/Optional;Ljava/util/Optional;Lam;Ljava/util/Map;Lal;Z)V
 
- 
Advancementpublic Advancement(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, AdvancementRequirements advancementRequirements, boolean bool, Optional<Text> optional3) 
 
- 
- 
Method Details- 
validate- Mappings:
- Namespace - Name - Mixin selector - named - validate- Lnet/minecraft/advancement/Advancement;validate(Lnet/minecraft/advancement/Advancement;)Lcom/mojang/serialization/DataResult;- intermediary - method_54910- Lnet/minecraft/class_161;method_54910(Lnet/minecraft/class_161;)Lcom/mojang/serialization/DataResult;- official - a- Lah;a(Lah;)Lcom/mojang/serialization/DataResult;
 
- 
createNameFromDisplay- Mappings:
- Namespace - Name - Mixin selector - named - createNameFromDisplay- Lnet/minecraft/advancement/Advancement;createNameFromDisplay(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/text/Text;- intermediary - method_53623- Lnet/minecraft/class_161;method_53623(Lnet/minecraft/class_185;)Lnet/minecraft/class_2561;- official - a- Lah;a(Lau;)Lwp;
 
- 
getNameFromIdentity- Mappings:
- Namespace - Name - Mixin selector - named - getNameFromIdentity- Lnet/minecraft/advancement/Advancement;getNameFromIdentity(Lnet/minecraft/advancement/AdvancementEntry;)Lnet/minecraft/text/Text;- intermediary - method_53622- Lnet/minecraft/class_161;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/class_2561;- official - a- Lah;a(Lai;)Lwp;
 
- 
write- Mappings:
- Namespace - Name - Mixin selector - named - write- Lnet/minecraft/advancement/Advancement;write(Lnet/minecraft/network/RegistryByteBuf;)V- intermediary - method_53627- Lnet/minecraft/class_161;method_53627(Lnet/minecraft/class_9129;)V- official - a- Lah;a(Lwa;)V
 
- 
read- Mappings:
- Namespace - Name - Mixin selector - named - read- Lnet/minecraft/advancement/Advancement;read(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/advancement/Advancement;- intermediary - method_53632- Lnet/minecraft/class_161;method_53632(Lnet/minecraft/class_9129;)Lnet/minecraft/class_161;- official - b- Lah;b(Lwa;)Lah;
 
- 
isRootpublic boolean isRoot()- Mappings:
- Namespace - Name - Mixin selector - named - isRoot- Lnet/minecraft/advancement/Advancement;isRoot()Z- intermediary - method_53630- Lnet/minecraft/class_161;method_53630()Z- official - a- Lah;a()Z
 
- 
validate- Mappings:
- Namespace - Name - Mixin selector - named - validate- Lnet/minecraft/advancement/Advancement;validate(Lnet/minecraft/util/ErrorReporter;Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;)V- intermediary - method_54912- Lnet/minecraft/class_161;method_54912(Lnet/minecraft/class_8942;Lnet/minecraft/class_7871$class_7872;)V- official - a- Lah;a(Lazf;Ljs$a;)V
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
parentReturns the value of theparentrecord component.- Returns:
- the value of the parentrecord component
 
- 
displayReturns the value of thedisplayrecord component.- Returns:
- the value of the displayrecord component
 
- 
rewardsReturns the value of therewardsrecord component.- Returns:
- the value of the rewardsrecord component
 
- 
criteriaReturns the value of thecriteriarecord component.- Returns:
- the value of the criteriarecord component
 
- 
requirementsReturns the value of therequirementsrecord component.- Returns:
- the value of the requirementsrecord component
 
- 
sendsTelemetryEventpublic boolean sendsTelemetryEvent()Returns the value of thesendsTelemetryEventrecord component.- Returns:
- the value of the sendsTelemetryEventrecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
 
-