Class Advancement

java.lang.Object
net.minecraft.advancement.Advancement

public class Advancement extends Object
Mappings:
Namespace Name
official af
intermediary net/minecraft/class_161
named net/minecraft/advancement/Advancement
  • Field Details

    • parent

      @Nullable private final @Nullable Advancement parent
      Mappings:
      Namespace Name Mixin selector
      official a Laf;a:Laf;
      intermediary field_1143 Lnet/minecraft/class_161;field_1143:Lnet/minecraft/class_161;
      named parent Lnet/minecraft/advancement/Advancement;parent:Lnet/minecraft/advancement/Advancement;
    • display

      @Nullable private final @Nullable AdvancementDisplay display
      Mappings:
      Namespace Name Mixin selector
      official b Laf;b:Lao;
      intermediary field_1146 Lnet/minecraft/class_161;field_1146:Lnet/minecraft/class_185;
      named display Lnet/minecraft/advancement/Advancement;display:Lnet/minecraft/advancement/AdvancementDisplay;
    • rewards

      private final AdvancementRewards rewards
      Mappings:
      Namespace Name Mixin selector
      official c Laf;c:Lai;
      intermediary field_1145 Lnet/minecraft/class_161;field_1145:Lnet/minecraft/class_170;
      named rewards Lnet/minecraft/advancement/Advancement;rewards:Lnet/minecraft/advancement/AdvancementRewards;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official d Laf;d:Labb;
      intermediary field_1144 Lnet/minecraft/class_161;field_1144:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/advancement/Advancement;id:Lnet/minecraft/util/Identifier;
    • criteria

      private final Map<String,AdvancementCriterion> criteria
      Mappings:
      Namespace Name Mixin selector
      official e Laf;e:Ljava/util/Map;
      intermediary field_1139 Lnet/minecraft/class_161;field_1139:Ljava/util/Map;
      named criteria Lnet/minecraft/advancement/Advancement;criteria:Ljava/util/Map;
    • requirements

      private final String[][] requirements
      Mappings:
      Namespace Name Mixin selector
      official f Laf;f:[[Ljava/lang/String;
      intermediary field_1142 Lnet/minecraft/class_161;field_1142:[[Ljava/lang/String;
      named requirements Lnet/minecraft/advancement/Advancement;requirements:[[Ljava/lang/String;
    • children

      private final Set<Advancement> children
      Mappings:
      Namespace Name Mixin selector
      official g Laf;g:Ljava/util/Set;
      intermediary field_1140 Lnet/minecraft/class_161;field_1140:Ljava/util/Set;
      named children Lnet/minecraft/advancement/Advancement;children:Ljava/util/Set;
    • text

      private final Text text
      Mappings:
      Namespace Name Mixin selector
      official h Laf;h:Lrq;
      intermediary field_1141 Lnet/minecraft/class_161;field_1141:Lnet/minecraft/class_2561;
      named text Lnet/minecraft/advancement/Advancement;text:Lnet/minecraft/text/Text;
  • Constructor Details

    • Advancement

      public Advancement(Identifier id, @Nullable @Nullable Advancement parent, @Nullable @Nullable AdvancementDisplay display, AdvancementRewards rewards, Map<String,AdvancementCriterion> criteria, String[][] requirements)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laf;<init>(Labb;Laf;Lao;Lai;Ljava/util/Map;[[Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_161;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_161;Lnet/minecraft/class_185;Lnet/minecraft/class_170;Ljava/util/Map;[[Ljava/lang/String;)V
      named <init> Lnet/minecraft/advancement/Advancement;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/Advancement;Lnet/minecraft/advancement/AdvancementDisplay;Lnet/minecraft/advancement/AdvancementRewards;Ljava/util/Map;[[Ljava/lang/String;)V
  • Method Details

    • createTask

      public Advancement.Builder createTask()
      Mappings:
      Namespace Name Mixin selector
      official a Laf;a()Laf$a;
      intermediary method_689 Lnet/minecraft/class_161;method_689()Lnet/minecraft/class_161$class_162;
      named createTask Lnet/minecraft/advancement/Advancement;createTask()Lnet/minecraft/advancement/Advancement$Builder;
    • getParent

      @Nullable public @Nullable Advancement getParent()
      Mappings:
      Namespace Name Mixin selector
      official b Laf;b()Laf;
      intermediary method_687 Lnet/minecraft/class_161;method_687()Lnet/minecraft/class_161;
      named getParent Lnet/minecraft/advancement/Advancement;getParent()Lnet/minecraft/advancement/Advancement;
    • getDisplay

      @Nullable public @Nullable AdvancementDisplay getDisplay()
      Mappings:
      Namespace Name Mixin selector
      official c Laf;c()Lao;
      intermediary method_686 Lnet/minecraft/class_161;method_686()Lnet/minecraft/class_185;
      named getDisplay Lnet/minecraft/advancement/Advancement;getDisplay()Lnet/minecraft/advancement/AdvancementDisplay;
    • getRewards

      public AdvancementRewards getRewards()
      Mappings:
      Namespace Name Mixin selector
      official d Laf;d()Lai;
      intermediary method_691 Lnet/minecraft/class_161;method_691()Lnet/minecraft/class_170;
      named getRewards Lnet/minecraft/advancement/Advancement;getRewards()Lnet/minecraft/advancement/AdvancementRewards;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getChildren

      public Iterable<Advancement> getChildren()
      Mappings:
      Namespace Name Mixin selector
      official e Laf;e()Ljava/lang/Iterable;
      intermediary method_681 Lnet/minecraft/class_161;method_681()Ljava/lang/Iterable;
      named getChildren Lnet/minecraft/advancement/Advancement;getChildren()Ljava/lang/Iterable;
    • getCriteria

      public Map<String,AdvancementCriterion> getCriteria()
      Mappings:
      Namespace Name Mixin selector
      official f Laf;f()Ljava/util/Map;
      intermediary method_682 Lnet/minecraft/class_161;method_682()Ljava/util/Map;
      named getCriteria Lnet/minecraft/advancement/Advancement;getCriteria()Ljava/util/Map;
    • getRequirementCount

      public int getRequirementCount()
      Mappings:
      Namespace Name Mixin selector
      official g Laf;g()I
      intermediary method_683 Lnet/minecraft/class_161;method_683()I
      named getRequirementCount Lnet/minecraft/advancement/Advancement;getRequirementCount()I
    • addChild

      public void addChild(Advancement child)
      Mappings:
      Namespace Name Mixin selector
      official a Laf;a(Laf;)V
      intermediary method_690 Lnet/minecraft/class_161;method_690(Lnet/minecraft/class_161;)V
      named addChild Lnet/minecraft/advancement/Advancement;addChild(Lnet/minecraft/advancement/Advancement;)V
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official h Laf;h()Labb;
      intermediary method_688 Lnet/minecraft/class_161;method_688()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/advancement/Advancement;getId()Lnet/minecraft/util/Identifier;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Laf;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_161;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/advancement/Advancement;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getRequirements

      public String[][] getRequirements()
      Mappings:
      Namespace Name Mixin selector
      official i Laf;i()[[Ljava/lang/String;
      intermediary method_680 Lnet/minecraft/class_161;method_680()[[Ljava/lang/String;
      named getRequirements Lnet/minecraft/advancement/Advancement;getRequirements()[[Ljava/lang/String;
    • toHoverableText

      public Text toHoverableText()
      Mappings:
      Namespace Name Mixin selector
      official j Laf;j()Lrq;
      intermediary method_684 Lnet/minecraft/class_161;method_684()Lnet/minecraft/class_2561;
      named toHoverableText Lnet/minecraft/advancement/Advancement;toHoverableText()Lnet/minecraft/text/Text;