Package net.minecraft.advancement
Class Advancement.Builder
java.lang.Object
net.minecraft.advancement.Advancement.Builder
- Enclosing class:
Advancement
- Mappings:
Namespace Name official ae$a
intermediary net/minecraft/class_161$class_162
named net/minecraft/advancement/Advancement$Builder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ImmutableMap.Builder<String,
AdvancementCriterion<?>> private Optional<AdvancementDisplay>
private Optional<Identifier>
private Optional<AdvancementRequirements>
private AdvancementRewards
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(Consumer<AdvancementEntry> exporter, String id) build
(Identifier id) static Advancement.Builder
create()
static Advancement.Builder
criterion
(String name, AdvancementCriterion<?> criterion) display
(AdvancementDisplay display) display
(ItemConvertible icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) display
(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) parent
(AdvancementEntry parent) parent
(Identifier parentId) Deprecated, for removal: This API element is subject to removal in a future version.requirements
(AdvancementRequirements requirements) rewards
(AdvancementRewards rewards) rewards
(AdvancementRewards.Builder builder)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Laew;)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(Lcjf;Ltl;Ltl;Laew;Lar;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(Lcpu;Ltl;Ltl;Laew;Lar;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
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Laq;)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
- 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
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Ljava/lang/String;Lam;)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
- 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
- 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
- Mappings:
Namespace Name Mixin selector official b
Lae$a;b(Laew;)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
- 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;
-