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 ag$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 Lag$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 Lag$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 Lag$a;c:Lal;
    • 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 Lag$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 Lag$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 Lag$a;f:Lak$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 Lag$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 Lag$a;a()Lag$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 Lag$a;b()Lag$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 Lag$a;a(Lah;)Lag$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 Lag$a;a(Lalz;)Lag$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 Lag$a;a(Lcxo;Lxv;Lxv;Lalz;Lan;ZZZ)Lag$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 Lag$a;a(Ldhg;Lxv;Lxv;Lalz;Lan;ZZZ)Lag$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 Lag$a;a(Lat;)Lag$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 Lag$a;a(Lal$a;)Lag$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 Lag$a;a(Lal;)Lag$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 Lag$a;a(Ljava/lang/String;Lap;)Lag$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 Lag$a;a(Lak$a;)Lag$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 Lag$a;a(Lak;)Lag$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 Lag$a;c()Lag$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 Lag$a;b(Lalz;)Lah;
    • 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 Lag$a;a(Ljava/util/function/Consumer;Ljava/lang/String;)Lah;