Class Advancement

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

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

    • parent

      private final Advancement parent
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a:Ly;
      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

      private final AdvancementDisplay display
      Mappings:
      Namespace Name Mixin selector
      official b Ly;b:Lah;
      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 Ly;c:Lab;
      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 Ly;d:Lwb;
      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 Ly;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 Ly;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 Ly;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 Ly;h:Loi;
      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 Advancement parent, @Nullable AdvancementDisplay display, AdvancementRewards rewards, Map<String,​AdvancementCriterion> criteria, String[][] requirements)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ly;<init>(Lwb;Ly;Lah;Lab;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.Task createTask()
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a()Ly$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$Task;
    • getParent

      @Nullable public Advancement getParent()
      Mappings:
      Namespace Name Mixin selector
      official b Ly;b()Ly;
      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 AdvancementDisplay getDisplay()
      Mappings:
      Namespace Name Mixin selector
      official c Ly;c()Lah;
      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 Ly;d()Lab;
      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
      Mappings:
      Namespace Name Mixin selector
      official toString Ly;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_161;toString()Ljava/lang/String;
      named toString Lnet/minecraft/advancement/Advancement;toString()Ljava/lang/String;
    • getChildren

      public Iterable<Advancement> getChildren()
      Mappings:
      Namespace Name Mixin selector
      official e Ly;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 Ly;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

      @Environment(CLIENT) public int getRequirementCount()
      Mappings:
      Namespace Name Mixin selector
      official g Ly;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 Ly;a(Ly;)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 Ly;h()Lwb;
      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 Ly;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
      Mappings:
      Namespace Name Mixin selector
      official hashCode Ly;hashCode()I
      intermediary hashCode Lnet/minecraft/class_161;hashCode()I
      named hashCode Lnet/minecraft/advancement/Advancement;hashCode()I
    • getRequirements

      public String[][] getRequirements()
      Mappings:
      Namespace Name Mixin selector
      official i Ly;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 Ly;j()Loi;
      intermediary method_684 Lnet/minecraft/class_161;method_684()Lnet/minecraft/class_2561;
      named toHoverableText Lnet/minecraft/advancement/Advancement;toHoverableText()Lnet/minecraft/text/Text;