Class Advancement.Builder

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

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

    • parentObj

      private Optional<Identifier> parentObj
      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a:Ljava/util/Optional;
      intermediary field_1149 Lnet/minecraft/class_161$class_162;field_1149:Ljava/util/Optional;
      named parentObj Lnet/minecraft/advancement/Advancement$Builder;parentObj:Ljava/util/Optional;
    • display

      private Optional<AdvancementDisplay> display
      Mappings:
      Namespace Name Mixin selector
      official b Lae$a;b:Ljava/util/Optional;
      intermediary field_1147 Lnet/minecraft/class_161$class_162;field_1147:Ljava/util/Optional;
      named display Lnet/minecraft/advancement/Advancement$Builder;display:Ljava/util/Optional;
    • rewards

      private AdvancementRewards rewards
      Mappings:
      Namespace Name Mixin selector
      official c Lae$a;c:Laj;
      intermediary field_1153 Lnet/minecraft/class_161$class_162;field_1153:Lnet/minecraft/class_170;
      named rewards Lnet/minecraft/advancement/Advancement$Builder;rewards:Lnet/minecraft/advancement/AdvancementRewards;
    • criteria

      private final ImmutableMap.Builder<String,AdvancementCriterion<?>> criteria
      Mappings:
      Namespace Name Mixin selector
      official d Lae$a;d:Lcom/google/common/collect/ImmutableMap$Builder;
      intermediary field_1148 Lnet/minecraft/class_161$class_162;field_1148:Lcom/google/common/collect/ImmutableMap$Builder;
      named criteria Lnet/minecraft/advancement/Advancement$Builder;criteria:Lcom/google/common/collect/ImmutableMap$Builder;
    • requirements

      private Optional<AdvancementRequirements> requirements
      Mappings:
      Namespace Name Mixin selector
      official e Lae$a;e:Ljava/util/Optional;
      intermediary field_1150 Lnet/minecraft/class_161$class_162;field_1150:Ljava/util/Optional;
      named requirements Lnet/minecraft/advancement/Advancement$Builder;requirements:Ljava/util/Optional;
    • merger

      Mappings:
      Namespace Name Mixin selector
      official f Lae$a;f:Lai$a;
      intermediary field_1151 Lnet/minecraft/class_161$class_162;field_1151:Lnet/minecraft/class_8782$class_8797;
      named merger Lnet/minecraft/advancement/Advancement$Builder;merger:Lnet/minecraft/advancement/AdvancementRequirements$CriterionMerger;
    • sendsTelemetryEvent

      private boolean sendsTelemetryEvent
      Mappings:
      Namespace Name Mixin selector
      official g Lae$a;g:Z
      intermediary field_44783 Lnet/minecraft/class_161$class_162;field_44783:Z
      named sendsTelemetryEvent Lnet/minecraft/advancement/Advancement$Builder;sendsTelemetryEvent:Z
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • create

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

      public static Advancement.Builder createUntelemetered()
      Mappings:
      Namespace Name Mixin selector
      official b Lae$a;b()Lae$a;
      intermediary method_51698 Lnet/minecraft/class_161$class_162;method_51698()Lnet/minecraft/class_161$class_162;
      named createUntelemetered Lnet/minecraft/advancement/Advancement$Builder;createUntelemetered()Lnet/minecraft/advancement/Advancement$Builder;
    • parent

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

      @Deprecated(forRemoval=true) public Advancement.Builder parent(Identifier parentId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Lahg;)Lae$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$Builder;parent(Lnet/minecraft/util/Identifier;)Lnet/minecraft/advancement/Advancement$Builder;
    • display

      public Advancement.Builder 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 Lae$a;a(Lcmy;Lvf;Lvf;Lahg;Lal;ZZZ)Lae$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$Builder;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$Builder;
    • display

      public Advancement.Builder 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 Lae$a;a(Lcto;Lvf;Lvf;Lahg;Lal;ZZZ)Lae$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$Builder;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$Builder;
    • display

      public Advancement.Builder display(AdvancementDisplay display)
      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Lar;)Lae$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$Builder;display(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/advancement/Advancement$Builder;
    • rewards

      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Laj$a;)Lae$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$Builder;rewards(Lnet/minecraft/advancement/AdvancementRewards$Builder;)Lnet/minecraft/advancement/Advancement$Builder;
    • rewards

      public Advancement.Builder rewards(AdvancementRewards rewards)
      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Laj;)Lae$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$Builder;rewards(Lnet/minecraft/advancement/AdvancementRewards;)Lnet/minecraft/advancement/Advancement$Builder;
    • criterion

      public Advancement.Builder criterion(String name, AdvancementCriterion<?> criterion)
      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Ljava/lang/String;Lan;)Lae$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$Builder;criterion(Ljava/lang/String;Lnet/minecraft/advancement/AdvancementCriterion;)Lnet/minecraft/advancement/Advancement$Builder;
    • criteriaMerger

      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Lai$a;)Lae$a;
      intermediary method_704 Lnet/minecraft/class_161$class_162;method_704(Lnet/minecraft/class_8782$class_8797;)Lnet/minecraft/class_161$class_162;
      named criteriaMerger Lnet/minecraft/advancement/Advancement$Builder;criteriaMerger(Lnet/minecraft/advancement/AdvancementRequirements$CriterionMerger;)Lnet/minecraft/advancement/Advancement$Builder;
    • requirements

      public Advancement.Builder requirements(AdvancementRequirements requirements)
      Mappings:
      Namespace Name Mixin selector
      official a Lae$a;a(Lai;)Lae$a;
      intermediary method_34884 Lnet/minecraft/class_161$class_162;method_34884(Lnet/minecraft/class_8782;)Lnet/minecraft/class_161$class_162;
      named requirements Lnet/minecraft/advancement/Advancement$Builder;requirements(Lnet/minecraft/advancement/AdvancementRequirements;)Lnet/minecraft/advancement/Advancement$Builder;
    • sendsTelemetryEvent

      public Advancement.Builder sendsTelemetryEvent()
      Mappings:
      Namespace Name Mixin selector
      official c Lae$a;c()Lae$a;
      intermediary method_53634 Lnet/minecraft/class_161$class_162;method_53634()Lnet/minecraft/class_161$class_162;
      named sendsTelemetryEvent Lnet/minecraft/advancement/Advancement$Builder;sendsTelemetryEvent()Lnet/minecraft/advancement/Advancement$Builder;
    • build

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

      public AdvancementEntry build(Consumer<AdvancementEntry> exporter, String id)
      Mappings:
      Namespace Name Mixin selector
      official a Lae$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_8779;
      named build Lnet/minecraft/advancement/Advancement$Builder;build(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancement/AdvancementEntry;