Class Advancement.Task

java.lang.Object
net.minecraft.advancement.Advancement.Task
Enclosing class:
Advancement

public static class Advancement.Task extends Object
Mappings:
Namespace Name
official af$a
intermediary net/minecraft/class_161$class_162
named net/minecraft/advancement/Advancement$Task
  • Field Details

    • parentId

      @Nullable private @Nullable Identifier parentId
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a:Lyh;
      intermediary field_1152 Lnet/minecraft/class_161$class_162;field_1152:Lnet/minecraft/class_2960;
      named parentId Lnet/minecraft/advancement/Advancement$Task;parentId:Lnet/minecraft/util/Identifier;
    • parentObj

      @Nullable private @Nullable Advancement parentObj
      Mappings:
      Namespace Name Mixin selector
      official b Laf$a;b:Laf;
      intermediary field_1149 Lnet/minecraft/class_161$class_162;field_1149:Lnet/minecraft/class_161;
      named parentObj Lnet/minecraft/advancement/Advancement$Task;parentObj:Lnet/minecraft/advancement/Advancement;
    • display

      Mappings:
      Namespace Name Mixin selector
      official c Laf$a;c:Lao;
      intermediary field_1147 Lnet/minecraft/class_161$class_162;field_1147:Lnet/minecraft/class_185;
      named display Lnet/minecraft/advancement/Advancement$Task;display:Lnet/minecraft/advancement/AdvancementDisplay;
    • rewards

      private AdvancementRewards rewards
      Mappings:
      Namespace Name Mixin selector
      official d Laf$a;d:Lai;
      intermediary field_1153 Lnet/minecraft/class_161$class_162;field_1153:Lnet/minecraft/class_170;
      named rewards Lnet/minecraft/advancement/Advancement$Task;rewards:Lnet/minecraft/advancement/AdvancementRewards;
    • criteria

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

      @Nullable private @Nullable String[][] requirements
      Mappings:
      Namespace Name Mixin selector
      official f Laf$a;f:[[Ljava/lang/String;
      intermediary field_1150 Lnet/minecraft/class_161$class_162;field_1150:[[Ljava/lang/String;
      named requirements Lnet/minecraft/advancement/Advancement$Task;requirements:[[Ljava/lang/String;
    • merger

      private CriterionMerger merger
      Mappings:
      Namespace Name Mixin selector
      official g Laf$a;g:Laq;
      intermediary field_1151 Lnet/minecraft/class_161$class_162;field_1151:Lnet/minecraft/class_193;
      named merger Lnet/minecraft/advancement/Advancement$Task;merger:Lnet/minecraft/advancement/CriterionMerger;
  • Constructor Details

    • Task

      Mappings:
      Namespace Name Mixin selector
      official <init> Laf$a;<init>(Lyh;Lao;Lai;Ljava/util/Map;[[Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_161$class_162;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_185;Lnet/minecraft/class_170;Ljava/util/Map;[[Ljava/lang/String;)V
      named <init> Lnet/minecraft/advancement/Advancement$Task;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/AdvancementDisplay;Lnet/minecraft/advancement/AdvancementRewards;Ljava/util/Map;[[Ljava/lang/String;)V
    • Task

      private Task()
  • Method Details

    • create

      public static Advancement.Task create()
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a()Laf$a;
      intermediary method_707 Lnet/minecraft/class_161$class_162;method_707()Lnet/minecraft/class_161$class_162;
      named create Lnet/minecraft/advancement/Advancement$Task;create()Lnet/minecraft/advancement/Advancement$Task;
    • parent

      public Advancement.Task parent(Advancement parent)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Laf;)Laf$a;
      intermediary method_701 Lnet/minecraft/class_161$class_162;method_701(Lnet/minecraft/class_161;)Lnet/minecraft/class_161$class_162;
      named parent Lnet/minecraft/advancement/Advancement$Task;parent(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/advancement/Advancement$Task;
    • parent

      public Advancement.Task parent(Identifier parentId)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lyh;)Laf$a;
      intermediary method_708 Lnet/minecraft/class_161$class_162;method_708(Lnet/minecraft/class_2960;)Lnet/minecraft/class_161$class_162;
      named parent Lnet/minecraft/advancement/Advancement$Task;parent(Lnet/minecraft/util/Identifier;)Lnet/minecraft/advancement/Advancement$Task;
    • display

      public Advancement.Task display(ItemStack icon, Text title, Text description, @Nullable @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lbue;Lpz;Lpz;Lyh;Lap;ZZZ)Laf$a;
      intermediary method_20416 Lnet/minecraft/class_161$class_162;method_20416(Lnet/minecraft/class_1799;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2960;Lnet/minecraft/class_189;ZZZ)Lnet/minecraft/class_161$class_162;
      named display Lnet/minecraft/advancement/Advancement$Task;display(Lnet/minecraft/item/ItemStack;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/AdvancementFrame;ZZZ)Lnet/minecraft/advancement/Advancement$Task;
    • display

      public Advancement.Task display(ItemConvertible icon, Text title, Text description, @Nullable @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lcac;Lpz;Lpz;Lyh;Lap;ZZZ)Laf$a;
      intermediary method_697 Lnet/minecraft/class_161$class_162;method_697(Lnet/minecraft/class_1935;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2960;Lnet/minecraft/class_189;ZZZ)Lnet/minecraft/class_161$class_162;
      named display Lnet/minecraft/advancement/Advancement$Task;display(Lnet/minecraft/item/ItemConvertible;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/AdvancementFrame;ZZZ)Lnet/minecraft/advancement/Advancement$Task;
    • display

      public Advancement.Task display(AdvancementDisplay display)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lao;)Laf$a;
      intermediary method_693 Lnet/minecraft/class_161$class_162;method_693(Lnet/minecraft/class_185;)Lnet/minecraft/class_161$class_162;
      named display Lnet/minecraft/advancement/Advancement$Task;display(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/advancement/Advancement$Task;
    • rewards

      public Advancement.Task rewards(AdvancementRewards.Builder builder)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lai$a;)Laf$a;
      intermediary method_703 Lnet/minecraft/class_161$class_162;method_703(Lnet/minecraft/class_170$class_171;)Lnet/minecraft/class_161$class_162;
      named rewards Lnet/minecraft/advancement/Advancement$Task;rewards(Lnet/minecraft/advancement/AdvancementRewards$Builder;)Lnet/minecraft/advancement/Advancement$Task;
    • rewards

      public Advancement.Task rewards(AdvancementRewards rewards)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lai;)Laf$a;
      intermediary method_706 Lnet/minecraft/class_161$class_162;method_706(Lnet/minecraft/class_170;)Lnet/minecraft/class_161$class_162;
      named rewards Lnet/minecraft/advancement/Advancement$Task;rewards(Lnet/minecraft/advancement/AdvancementRewards;)Lnet/minecraft/advancement/Advancement$Task;
    • criterion

      public Advancement.Task criterion(String name, CriterionConditions conditions)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Ljava/lang/String;Lan;)Laf$a;
      intermediary method_709 Lnet/minecraft/class_161$class_162;method_709(Ljava/lang/String;Lnet/minecraft/class_184;)Lnet/minecraft/class_161$class_162;
      named criterion Lnet/minecraft/advancement/Advancement$Task;criterion(Ljava/lang/String;Lnet/minecraft/advancement/criterion/CriterionConditions;)Lnet/minecraft/advancement/Advancement$Task;
    • criterion

      public Advancement.Task criterion(String name, AdvancementCriterion criterion)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Ljava/lang/String;Lak;)Laf$a;
      intermediary method_705 Lnet/minecraft/class_161$class_162;method_705(Ljava/lang/String;Lnet/minecraft/class_175;)Lnet/minecraft/class_161$class_162;
      named criterion Lnet/minecraft/advancement/Advancement$Task;criterion(Ljava/lang/String;Lnet/minecraft/advancement/AdvancementCriterion;)Lnet/minecraft/advancement/Advancement$Task;
    • criteriaMerger

      public Advancement.Task criteriaMerger(CriterionMerger merger)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Laq;)Laf$a;
      intermediary method_704 Lnet/minecraft/class_161$class_162;method_704(Lnet/minecraft/class_193;)Lnet/minecraft/class_161$class_162;
      named criteriaMerger Lnet/minecraft/advancement/Advancement$Task;criteriaMerger(Lnet/minecraft/advancement/CriterionMerger;)Lnet/minecraft/advancement/Advancement$Task;
    • requirements

      public Advancement.Task requirements(String[][] requirements)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a([[Ljava/lang/String;)Laf$a;
      intermediary method_34884 Lnet/minecraft/class_161$class_162;method_34884([[Ljava/lang/String;)Lnet/minecraft/class_161$class_162;
      named requirements Lnet/minecraft/advancement/Advancement$Task;requirements([[Ljava/lang/String;)Lnet/minecraft/advancement/Advancement$Task;
    • findParent

      public boolean findParent(Function<Identifier,Advancement> parentProvider)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Ljava/util/function/Function;)Z
      intermediary method_700 Lnet/minecraft/class_161$class_162;method_700(Ljava/util/function/Function;)Z
      named findParent Lnet/minecraft/advancement/Advancement$Task;findParent(Ljava/util/function/Function;)Z
    • build

      public Advancement build(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official b Laf$a;b(Lyh;)Laf;
      intermediary method_695 Lnet/minecraft/class_161$class_162;method_695(Lnet/minecraft/class_2960;)Lnet/minecraft/class_161;
      named build Lnet/minecraft/advancement/Advancement$Task;build(Lnet/minecraft/util/Identifier;)Lnet/minecraft/advancement/Advancement;
    • build

      public Advancement build(Consumer<Advancement> consumer, String id)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Ljava/util/function/Consumer;Ljava/lang/String;)Laf;
      intermediary method_694 Lnet/minecraft/class_161$class_162;method_694(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/class_161;
      named build Lnet/minecraft/advancement/Advancement$Task;build(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancement/Advancement;
    • toJson

      public JsonObject toJson()
      Mappings:
      Namespace Name Mixin selector
      official b Laf$a;b()Lcom/google/gson/JsonObject;
      intermediary method_698 Lnet/minecraft/class_161$class_162;method_698()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/Advancement$Task;toJson()Lcom/google/gson/JsonObject;
    • toPacket

      public void toPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lpn;)V
      intermediary method_699 Lnet/minecraft/class_161$class_162;method_699(Lnet/minecraft/class_2540;)V
      named toPacket Lnet/minecraft/advancement/Advancement$Task;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
    • toString

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

      public static Advancement.Task fromJson(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Mappings:
      Namespace Name Mixin selector
      official a Laf$a;a(Lcom/google/gson/JsonObject;Lbe;)Laf$a;
      intermediary method_692 Lnet/minecraft/class_161$class_162;method_692(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_161$class_162;
      named fromJson Lnet/minecraft/advancement/Advancement$Task;fromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/Advancement$Task;
    • fromPacket

      public static Advancement.Task fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Laf$a;b(Lpn;)Laf$a;
      intermediary method_696 Lnet/minecraft/class_161$class_162;method_696(Lnet/minecraft/class_2540;)Lnet/minecraft/class_161$class_162;
      named fromPacket Lnet/minecraft/advancement/Advancement$Task;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/Advancement$Task;
    • getCriteria

      public Map<String,AdvancementCriterion> getCriteria()
      Mappings:
      Namespace Name Mixin selector
      official c Laf$a;c()Ljava/util/Map;
      intermediary method_710 Lnet/minecraft/class_161$class_162;method_710()Ljava/util/Map;
      named getCriteria Lnet/minecraft/advancement/Advancement$Task;getCriteria()Ljava/util/Map;