Class Advancement.Builder

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

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

    • parentObj

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

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

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

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

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

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

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

    • Builder

      public Builder()
  • Method Details

    • create

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

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

      public Advancement.Builder parent(AdvancementEntry parent)
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/advancement/Advancement$Builder;parent(Lnet/minecraft/advancement/AdvancementEntry;)Lnet/minecraft/advancement/Advancement$Builder;
      intermediary method_701 Lnet/minecraft/class_161$class_162;method_701(Lnet/minecraft/class_8779;)Lnet/minecraft/class_161$class_162;
      official a Lae$a;a(Laf;)Lae$a;
    • 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
      named parent Lnet/minecraft/advancement/Advancement$Builder;parent(Lnet/minecraft/util/Identifier;)Lnet/minecraft/advancement/Advancement$Builder;
      intermediary method_708 Lnet/minecraft/class_161$class_162;method_708(Lnet/minecraft/class_2960;)Lnet/minecraft/class_161$class_162;
      official a Lae$a;a(Lakk;)Lae$a;
    • 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
      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;
      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;
      official a Lae$a;a(Lcud;Lwu;Lwu;Lakk;Lal;ZZZ)Lae$a;
    • 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
      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;
      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;
      official a Lae$a;a(Ldcf;Lwu;Lwu;Lakk;Lal;ZZZ)Lae$a;
    • display

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

      Mappings:
      Namespace Name Mixin selector
      named rewards Lnet/minecraft/advancement/Advancement$Builder;rewards(Lnet/minecraft/advancement/AdvancementRewards$Builder;)Lnet/minecraft/advancement/Advancement$Builder;
      intermediary method_703 Lnet/minecraft/class_161$class_162;method_703(Lnet/minecraft/class_170$class_171;)Lnet/minecraft/class_161$class_162;
      official a Lae$a;a(Laj$a;)Lae$a;
    • rewards

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

      public Advancement.Builder criterion(String name, AdvancementCriterion<?> criterion)
      Mappings:
      Namespace Name Mixin selector
      named criterion Lnet/minecraft/advancement/Advancement$Builder;criterion(Ljava/lang/String;Lnet/minecraft/advancement/AdvancementCriterion;)Lnet/minecraft/advancement/Advancement$Builder;
      intermediary method_705 Lnet/minecraft/class_161$class_162;method_705(Ljava/lang/String;Lnet/minecraft/class_175;)Lnet/minecraft/class_161$class_162;
      official a Lae$a;a(Ljava/lang/String;Lan;)Lae$a;
    • criteriaMerger

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

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

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

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

      public AdvancementEntry build(Consumer<AdvancementEntry> exporter, String id)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/advancement/Advancement$Builder;build(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancement/AdvancementEntry;
      intermediary method_694 Lnet/minecraft/class_161$class_162;method_694(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/class_8779;
      official a Lae$a;a(Ljava/util/function/Consumer;Ljava/lang/String;)Laf;