public static interface Advancement.Builder extends CatalogBuilder<Advancement,Advancement.Builder>
Advancements.| Modifier and Type | Method and Description |
|---|---|
Advancement |
build()
Builds the
CatalogType of type C. |
Advancement.Builder |
criterion(AdvancementCriterion criterion)
Sets the
AdvancementCriterion that should be used
for the advancement. |
Advancement.Builder |
displayInfo(DisplayInfo displayInfo)
Sets the
DisplayInfo. |
default Advancement.Builder |
from(Advancement value)
Deprecated.
|
Advancement.Builder |
id(String id)
Sets the id of the
CatalogType (without the namespace/plugin id). |
Advancement.Builder |
name(String name)
Sets the name of the
Advancement. |
Advancement.Builder |
parent(Advancement parent)
Sets the parent
Advancement. |
nameresetAdvancement.Builder parent(@Nullable Advancement parent)
Advancement. Defaults to {code null}.parent - The parent advancementAdvancement.Builder criterion(AdvancementCriterion criterion)
AdvancementCriterion that should be used
for the advancement. Defaults to AdvancementCriterion.EMPTY.criterion - The criterionAdvancement.Builder displayInfo(@Nullable DisplayInfo displayInfo)
DisplayInfo. Defaults to {code null}.displayInfo - The display infoAdvancement.Builder id(String id)
CatalogBuilderCatalogType (without the namespace/plugin id).id in interface CatalogBuilder<Advancement,Advancement.Builder>id - The idAdvancement.Builder name(String name)
Advancement. Defaults to
the plain DisplayInfo.getTitle() if the
DisplayInfo is present. Otherwise will it default
to the identifier (id(String)).name in interface CatalogBuilder<Advancement,Advancement.Builder>name - The nameAdvancement build()
CatalogBuilderCatalogType of type C.
The last PluginContainer in the cause stack will be used to
determine which plugin was used to construct the CatalogType.
build in interface CatalogBuilder<Advancement,Advancement.Builder>@Deprecated default Advancement.Builder from(Advancement value) throws UnsupportedOperationException
ResettableBuilderfrom in interface CatalogBuilder<Advancement,Advancement.Builder>from in interface ResettableBuilder<Advancement,Advancement.Builder>value - The built objectUnsupportedOperationException