Package net.minecraft.advancements
Class Advancement.Builder
java.lang.Object
net.minecraft.advancements.Advancement.Builder
- All Implemented Interfaces:
IAdvancementBuilderExtension
- Enclosing class:
Advancement
-
Field Summary
Modifier and TypeFieldDescriptionprivate Optional<DisplayInfo>
private Optional<ResourceLocation>
private Optional<AdvancementRequirements>
private AdvancementRequirements.Strategy
private AdvancementRewards
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCriterion
(String p_138384_, Criterion<?> p_138385_) static Advancement.Builder
build
(ResourceLocation p_138404_) display
(DisplayInfo p_138359_) display
(ItemStack p_312724_, Component p_138373_, Component p_138374_, ResourceLocation p_138375_, AdvancementType p_312711_, boolean p_138377_, boolean p_138378_, boolean p_138379_) display
(ItemLike p_311787_, Component p_138364_, Component p_138365_, ResourceLocation p_138366_, AdvancementType p_312847_, boolean p_138368_, boolean p_138369_, boolean p_138370_) parent
(AdvancementHolder p_301226_) parent
(ResourceLocation p_138397_) Deprecated, for removal: This API element is subject to removal in a future version.static Advancement.Builder
requirements
(AdvancementRequirements p_301103_) requirements
(AdvancementRequirements.Strategy p_300955_) rewards
(AdvancementRewards p_138357_) rewards
(AdvancementRewards.Builder p_138355_) save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IAdvancementBuilderExtension
save
-
Field Details
-
parent
-
display
-
rewards
-
criteria
-
requirements
-
requirementsStrategy
-
sendsTelemetryEvent
private boolean sendsTelemetryEvent
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
advancement
-
recipeAdvancement
-
parent
-
parent
Deprecated, for removal: This API element is subject to removal in a future version. -
display
public Advancement.Builder display(ItemStack p_312724_, Component p_138373_, Component p_138374_, @Nullable ResourceLocation p_138375_, AdvancementType p_312711_, boolean p_138377_, boolean p_138378_, boolean p_138379_) -
display
public Advancement.Builder display(ItemLike p_311787_, Component p_138364_, Component p_138365_, @Nullable ResourceLocation p_138366_, AdvancementType p_312847_, boolean p_138368_, boolean p_138369_, boolean p_138370_) -
display
-
rewards
-
rewards
-
addCriterion
-
requirements
-
requirements
-
sendsTelemetryEvent
-
build
-
save
-