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 RequirementsStrategy
private AdvancementRewards
-
Constructor Summary
ModifierConstructorDescriptionprivate
Builder()
(package private)
Builder
(ResourceLocation p_138341_, DisplayInfo p_138342_, AdvancementRewards p_138343_, Map<String, Criterion> p_138344_, String[][] p_138345_) -
Method Summary
Modifier and TypeMethodDescriptionaddCriterion
(String p_138384_, Criterion p_138385_) addCriterion
(String p_138387_, CriterionTriggerInstance p_138388_) static Advancement.Builder
build
(ResourceLocation p_138404_) boolean
canBuild
(Function<ResourceLocation, Advancement> p_138393_) display
(DisplayInfo p_138359_) display
(ItemStack p_138363_, Component p_138364_, Component p_138365_, ResourceLocation p_138366_, FrameType p_138367_, boolean p_138368_, boolean p_138369_, boolean p_138370_) display
(ItemLike p_138372_, Component p_138373_, Component p_138374_, ResourceLocation p_138375_, FrameType p_138376_, boolean p_138377_, boolean p_138378_, boolean p_138379_) static Advancement.Builder
fromJson
(com.google.gson.JsonObject p_138381_, DeserializationContext p_138382_) Deprecated.Forge: use overload with context.static Advancement.Builder
fromJson
(com.google.gson.JsonObject p_138381_, DeserializationContext p_138382_, ICondition.IContext context) static Advancement.Builder
fromNetwork
(FriendlyByteBuf p_138402_) parent
(Advancement p_138399_) parent
(ResourceLocation p_138397_) requirements
(String[][] p_143952_) requirements
(RequirementsStrategy p_138361_) rewards
(AdvancementRewards p_138357_) rewards
(AdvancementRewards.Builder p_138355_) save
(Consumer<Advancement> p_138390_, String p_138391_) com.google.gson.JsonObject
void
serializeToNetwork
(FriendlyByteBuf p_138395_) 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
-
Field Details
-
parentId
-
parent
-
display
-
rewards
-
criteria
-
requirements
-
requirementsStrategy
-
-
Constructor Details
-
Builder
Builder(@Nullable ResourceLocation p_138341_, @Nullable DisplayInfo p_138342_, AdvancementRewards p_138343_, Map<String, Criterion> p_138344_, String[][] p_138345_) -
Builder
private Builder()
-
-
Method Details
-
advancement
-
parent
-
parent
-
display
public Advancement.Builder display(ItemStack p_138363_, Component p_138364_, Component p_138365_, @Nullable ResourceLocation p_138366_, FrameType p_138367_, boolean p_138368_, boolean p_138369_, boolean p_138370_) -
display
public Advancement.Builder display(ItemLike p_138372_, Component p_138373_, Component p_138374_, @Nullable ResourceLocation p_138375_, FrameType p_138376_, boolean p_138377_, boolean p_138378_, boolean p_138379_) -
display
-
rewards
-
rewards
-
addCriterion
-
addCriterion
-
requirements
-
requirements
-
canBuild
-
build
-
save
-
serializeToJson
public com.google.gson.JsonObject serializeToJson() -
serializeToNetwork
-
toString
-
fromJson
@Deprecated public static Advancement.Builder fromJson(com.google.gson.JsonObject p_138381_, DeserializationContext p_138382_) Deprecated.Forge: use overload with context. -
fromJson
public static Advancement.Builder fromJson(com.google.gson.JsonObject p_138381_, DeserializationContext p_138382_, ICondition.IContext context) -
fromNetwork
-
getCriteria
-