Package net.minecraft.advancements
Class Advancement.Builder
java.lang.Object
net.minecraft.advancements.Advancement.Builder
- 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_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_) parent
(AdvancementHolder p_300513_) parent
(ResourceLocation p_138397_) Deprecated, for removal: This API element is subject to removal in a future version.static Advancement.Builder
requirements
(AdvancementRequirements p_300756_) requirements
(AdvancementRequirements.Strategy p_298091_) rewards
(AdvancementRewards p_138357_) rewards
(AdvancementRewards.Builder p_138355_) save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) save
(Consumer<AdvancementHolder> p_138390_, ResourceLocation id)
-
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_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
-
requirements
-
requirements
-
sendsTelemetryEvent
-
build
-
save
-
save
-