Package net.minecraft.advancements
Class Advancement.Builder
java.lang.Object
net.minecraft.advancements.Advancement.Builder
- All Implemented Interfaces:
IForgeAdvancementBuilder
- Enclosing class:
- Advancement
-
Field Summary
Modifier and TypeFieldDescriptionprivate DisplayInfo
private Advancement
private ResourceLocation
private String[][]
private IRequirementsStrategy
private AdvancementRewards
-
Constructor Summary
ModifierConstructorDescriptionprivate
Builder()
private
Builder
(ResourceLocation p_i47414_1_, DisplayInfo p_i47414_2_, AdvancementRewards p_i47414_3_, Map<String, Criterion> p_i47414_4_, String[][] p_i47414_5_) -
Method Summary
Modifier and TypeMethodDescriptionaddCriterion
(String p_200276_1_, Criterion p_200276_2_) addCriterion
(String p_200275_1_, ICriterionInstance p_200275_2_) static Advancement.Builder
build
(ResourceLocation p_192056_1_) boolean
canBuild
(Function<ResourceLocation, Advancement> p_192058_1_) display
(DisplayInfo p_203903_1_) display
(ItemStack p_215092_1_, ITextComponent p_215092_2_, ITextComponent p_215092_3_, ResourceLocation p_215092_4_, FrameType p_215092_5_, boolean p_215092_6_, boolean p_215092_7_, boolean p_215092_8_) display
(IItemProvider p_203902_1_, ITextComponent p_203902_2_, ITextComponent p_203902_3_, ResourceLocation p_203902_4_, FrameType p_203902_5_, boolean p_203902_6_, boolean p_203902_7_, boolean p_203902_8_) static Advancement.Builder
fromJson
(com.google.gson.JsonObject p_241043_0_, ConditionArrayParser p_241043_1_) static Advancement.Builder
fromNetwork
(PacketBuffer p_192060_0_) parent
(Advancement p_203905_1_) parent
(ResourceLocation p_200272_1_) requirements
(IRequirementsStrategy p_200270_1_) rewards
(AdvancementRewards p_200274_1_) rewards
(AdvancementRewards.Builder p_200271_1_) save
(Consumer<Advancement> p_203904_1_, String p_203904_2_) com.google.gson.JsonObject
void
serializeToNetwork
(PacketBuffer p_192057_1_) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeAdvancementBuilder
save, self
-
Field Details
-
parentId
-
parent
-
display
-
rewards
-
criteria
-
requirements
-
requirementsStrategy
-
-
Constructor Details
-
Builder
private Builder(@Nullable ResourceLocation p_i47414_1_, @Nullable DisplayInfo p_i47414_2_, AdvancementRewards p_i47414_3_, Map<String, Criterion> p_i47414_4_, String[][] p_i47414_5_) -
Builder
private Builder()
-
-
Method Details
-
advancement
-
parent
-
parent
-
display
public Advancement.Builder display(ItemStack p_215092_1_, ITextComponent p_215092_2_, ITextComponent p_215092_3_, @Nullable ResourceLocation p_215092_4_, FrameType p_215092_5_, boolean p_215092_6_, boolean p_215092_7_, boolean p_215092_8_) -
display
public Advancement.Builder display(IItemProvider p_203902_1_, ITextComponent p_203902_2_, ITextComponent p_203902_3_, @Nullable ResourceLocation p_203902_4_, FrameType p_203902_5_, boolean p_203902_6_, boolean p_203902_7_, boolean p_203902_8_) -
display
-
rewards
-
rewards
-
addCriterion
-
addCriterion
-
requirements
-
canBuild
-
build
-
save
-
serializeToJson
public com.google.gson.JsonObject serializeToJson() -
serializeToNetwork
-
toString
-
fromJson
public static Advancement.Builder fromJson(com.google.gson.JsonObject p_241043_0_, ConditionArrayParser p_241043_1_) -
fromNetwork
-
getCriteria
-