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
official ae
intermediary net/minecraft/class_161
named net/minecraft/advancement/Advancement
official b
intermediary comp_1912
named parent
official c
intermediary comp_1913
named display
official d
intermediary comp_1914
named rewards
official e
intermediary comp_1915
named criteria
official f
intermediary comp_1916
named requirements
official g
intermediary comp_1917
named sendsTelemetryEvent
official h
intermediary comp_1918
named name
  • Field Details

    • parent

      private final Optional<Identifier> parent
      The field for the parent record component.
    • display

      private final Optional<AdvancementDisplay> display
      The field for the display record component.
    • rewards

      private final AdvancementRewards rewards
      The field for the rewards record component.
    • criteria

      private final Map<String,AdvancementCriterion<?>> criteria
      The field for the criteria record component.
    • requirements

      private final AdvancementRequirements requirements
      The field for the requirements record component.
    • sendsTelemetryEvent

      private final boolean sendsTelemetryEvent
      The field for the sendsTelemetryEvent record component.
    • name

      private final Optional<Text> name
      The field for the name record component.
    • CRITERIA_CODEC

      private static final com.mojang.serialization.Codec<Map<String,AdvancementCriterion<?>>> CRITERIA_CODEC
      Mappings:
      Namespace Name Mixin selector
      official i Lae;i:Lcom/mojang/serialization/Codec;
      intermediary field_47180 Lnet/minecraft/class_161;field_47180:Lcom/mojang/serialization/Codec;
      named CRITERIA_CODEC Lnet/minecraft/advancement/Advancement;CRITERIA_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<Advancement> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a:Lcom/mojang/serialization/Codec;
      intermediary field_47179 Lnet/minecraft/class_161;field_47179:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/advancement/Advancement;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • validate

      private static com.mojang.serialization.DataResult<Advancement> validate(Advancement advancement)
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a(Lae;)Lcom/mojang/serialization/DataResult;
      intermediary method_54910 Lnet/minecraft/class_161;method_54910(Lnet/minecraft/class_161;)Lcom/mojang/serialization/DataResult;
      named validate Lnet/minecraft/advancement/Advancement;validate(Lnet/minecraft/advancement/Advancement;)Lcom/mojang/serialization/DataResult;
    • createNameFromDisplay

      private static Text createNameFromDisplay(AdvancementDisplay display)
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a(Lar;)Lvf;
      intermediary method_53623 Lnet/minecraft/class_161;method_53623(Lnet/minecraft/class_185;)Lnet/minecraft/class_2561;
      named createNameFromDisplay Lnet/minecraft/advancement/Advancement;createNameFromDisplay(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/text/Text;
    • getNameFromIdentity

      public static Text getNameFromIdentity(AdvancementEntry identifiedAdvancement)
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a(Laf;)Lvf;
      intermediary method_53622 Lnet/minecraft/class_161;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/class_2561;
      named getNameFromIdentity Lnet/minecraft/advancement/Advancement;getNameFromIdentity(Lnet/minecraft/advancement/AdvancementEntry;)Lnet/minecraft/text/Text;
    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a(Lui;)V
      intermediary method_53627 Lnet/minecraft/class_161;method_53627(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/advancement/Advancement;write(Lnet/minecraft/network/PacketByteBuf;)V
    • read

      public static Advancement read(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lae;b(Lui;)Lae;
      intermediary method_53632 Lnet/minecraft/class_161;method_53632(Lnet/minecraft/class_2540;)Lnet/minecraft/class_161;
      named read Lnet/minecraft/advancement/Advancement;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/Advancement;
    • isRoot

      public boolean isRoot()
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a()Z
      intermediary method_53630 Lnet/minecraft/class_161;method_53630()Z
      named isRoot Lnet/minecraft/advancement/Advancement;isRoot()Z
    • validate

      public void validate(ErrorReporter errorReporter, LootDataLookup conditionsLookup)
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a(Laut;Leha;)V
      intermediary method_54912 Lnet/minecraft/class_161;method_54912(Lnet/minecraft/class_8942;Lnet/minecraft/class_8489;)V
      named validate Lnet/minecraft/advancement/Advancement;validate(Lnet/minecraft/util/ErrorReporter;Lnet/minecraft/loot/LootDataLookup;)V
    • toString

      public final String toString()
      Returns 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates 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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • parent

      public Optional<Identifier> parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • display

      public Optional<AdvancementDisplay> display()
      Returns the value of the display record component.
      Returns:
      the value of the display record component
    • rewards

      public AdvancementRewards rewards()
      Returns the value of the rewards record component.
      Returns:
      the value of the rewards record component
    • criteria

      public Map<String,AdvancementCriterion<?>> criteria()
      Returns the value of the criteria record component.
      Returns:
      the value of the criteria record component
    • requirements

      public AdvancementRequirements requirements()
      Returns the value of the requirements record component.
      Returns:
      the value of the requirements record component
    • sendsTelemetryEvent

      public boolean sendsTelemetryEvent()
      Returns the value of the sendsTelemetryEvent record component.
      Returns:
      the value of the sendsTelemetryEvent record component
    • name

      public Optional<Text> name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component