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 Map<String,
AdvancementCriterion> private @Nullable AdvancementDisplay
private CriterionMerger
private @Nullable Identifier
private @Nullable Advancement
private AdvancementRewards
-
Constructor Summary
ModifierConstructorDescriptionprivate
Builder()
(package private)
Builder
(@Nullable Identifier parentId, @Nullable AdvancementDisplay display, AdvancementRewards rewards, Map<String, AdvancementCriterion> criteria, String[][] requirements) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(Consumer<Advancement> exporter, String id) build
(Identifier id) static Advancement.Builder
create()
criteriaMerger
(CriterionMerger merger) criterion
(String name, AdvancementCriterion criterion) criterion
(String name, CriterionConditions conditions) 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) boolean
findParent
(Function<Identifier, Advancement> parentProvider) static Advancement.Builder
fromJson
(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer) static Advancement.Builder
fromPacket
(PacketByteBuf buf) parent
(Advancement parent) parent
(Identifier parentId) requirements
(String[][] requirements) rewards
(AdvancementRewards rewards) rewards
(AdvancementRewards.Builder builder) toJson()
void
toPacket
(PacketByteBuf buf) toString()
-
Field Details
-
parentId
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a:Ladd;
intermediary field_1152
Lnet/minecraft/class_161$class_162;field_1152:Lnet/minecraft/class_2960;
named parentId
Lnet/minecraft/advancement/Advancement$Builder;parentId:Lnet/minecraft/util/Identifier;
-
parentObj
- Mappings:
Namespace Name Mixin selector official b
Lae$a;b:Lae;
intermediary field_1149
Lnet/minecraft/class_161$class_162;field_1149:Lnet/minecraft/class_161;
named parentObj
Lnet/minecraft/advancement/Advancement$Builder;parentObj:Lnet/minecraft/advancement/Advancement;
-
display
- Mappings:
Namespace Name Mixin selector official c
Lae$a;c:Lan;
intermediary field_1147
Lnet/minecraft/class_161$class_162;field_1147:Lnet/minecraft/class_185;
named display
Lnet/minecraft/advancement/Advancement$Builder;display:Lnet/minecraft/advancement/AdvancementDisplay;
-
rewards
- Mappings:
Namespace Name Mixin selector official d
Lae$a;d:Lah;
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 e
Lae$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$Builder;criteria:Ljava/util/Map;
-
requirements
- Mappings:
Namespace Name Mixin selector official f
Lae$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$Builder;requirements:[[Ljava/lang/String;
-
merger
- Mappings:
Namespace Name Mixin selector official g
Lae$a;g:Lap;
intermediary field_1151
Lnet/minecraft/class_161$class_162;field_1151:Lnet/minecraft/class_193;
named merger
Lnet/minecraft/advancement/Advancement$Builder;merger:Lnet/minecraft/advancement/CriterionMerger;
-
-
Constructor Details
-
Builder
Builder(@Nullable @Nullable Identifier parentId, @Nullable @Nullable AdvancementDisplay display, AdvancementRewards rewards, Map<String, AdvancementCriterion> criteria, String[][] requirements) - Mappings:
Namespace Name Mixin selector official <init>
Lae$a;<init>(Ladd;Lan;Lah;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$Builder;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/AdvancementDisplay;Lnet/minecraft/advancement/AdvancementRewards;Ljava/util/Map;[[Ljava/lang/String;)V
-
Builder
private 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;
-
parent
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Lae;)Lae$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$Builder;parent(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/advancement/Advancement$Builder;
-
parent
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Ladd;)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(Lcfv;Ltj;Ltj;Ladd;Lao;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(Lcmh;Ltj;Ltj;Ladd;Lao;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(Lan;)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(Lah$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(Lah;)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_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$Builder;criterion(Ljava/lang/String;Lnet/minecraft/advancement/criterion/CriterionConditions;)Lnet/minecraft/advancement/Advancement$Builder;
-
criterion
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Ljava/lang/String;Laj;)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(Lap;)Lae$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$Builder;criteriaMerger(Lnet/minecraft/advancement/CriterionMerger;)Lnet/minecraft/advancement/Advancement$Builder;
-
requirements
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a([[Ljava/lang/String;)Lae$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$Builder;requirements([[Ljava/lang/String;)Lnet/minecraft/advancement/Advancement$Builder;
-
findParent
- Mappings:
Namespace Name Mixin selector official a
Lae$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$Builder;findParent(Ljava/util/function/Function;)Z
-
build
- Mappings:
Namespace Name Mixin selector official b
Lae$a;b(Ladd;)Lae;
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$Builder;build(Lnet/minecraft/util/Identifier;)Lnet/minecraft/advancement/Advancement;
-
build
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Ljava/util/function/Consumer;Ljava/lang/String;)Lae;
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$Builder;build(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancement/Advancement;
-
toJson
- Mappings:
Namespace Name Mixin selector official b
Lae$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$Builder;toJson()Lcom/google/gson/JsonObject;
-
toPacket
- Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Lss;)V
intermediary method_699
Lnet/minecraft/class_161$class_162;method_699(Lnet/minecraft/class_2540;)V
named toPacket
Lnet/minecraft/advancement/Advancement$Builder;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
toString
-
fromJson
public static Advancement.Builder fromJson(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer) - Mappings:
Namespace Name Mixin selector official a
Lae$a;a(Lcom/google/gson/JsonObject;Lbd;)Lae$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$Builder;fromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/Advancement$Builder;
-
fromPacket
- Mappings:
Namespace Name Mixin selector official b
Lae$a;b(Lss;)Lae$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$Builder;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/Advancement$Builder;
-
getCriteria
- Mappings:
Namespace Name Mixin selector official c
Lae$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$Builder;getCriteria()Ljava/util/Map;
-