public static interface AdvancementTree.Builder extends CatalogBuilder<AdvancementTree,AdvancementTree.Builder>
AdvancementTree
s.Modifier and Type | Method and Description |
---|---|
AdvancementTree.Builder |
background(String background)
Sets the background of
AdvancementTree . |
AdvancementTree |
build()
Builds the
CatalogType of type C . |
default AdvancementTree.Builder |
from(AdvancementTree value)
Deprecated.
|
AdvancementTree.Builder |
id(String id)
Sets the id of the
CatalogType (without the namespace/plugin id). |
AdvancementTree.Builder |
name(String name)
Sets the name of the
AdvancementTree . |
AdvancementTree.Builder |
rootAdvancement(Advancement rootAdvancement)
Sets the root
Advancement . |
name
reset
AdvancementTree.Builder rootAdvancement(Advancement rootAdvancement)
Advancement
. The root advancement MUST have
DisplayInfo
present.rootAdvancement
- The root advancementIllegalArgumentException
- If the display info is missingAdvancementTree.Builder background(String background)
AdvancementTree
.
Defaults to the stone background:
minecraft:textures/gui/advancements/backgrounds/stone.png
background
- The backgroundAdvancementTree.Builder id(String id)
CatalogBuilder
CatalogType
(without the namespace/plugin id).id
in interface CatalogBuilder<AdvancementTree,AdvancementTree.Builder>
id
- The idAdvancementTree.Builder name(String name)
AdvancementTree
. Defaults to
the plain DisplayInfo.getTitle()
of the root
Advancement
if DisplayInfo
is present.
Otherwise will it default to the identifier (id(String)
).name
in interface CatalogBuilder<AdvancementTree,AdvancementTree.Builder>
name
- The nameAdvancementTree build()
CatalogBuilder
CatalogType
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<AdvancementTree,AdvancementTree.Builder>
@Deprecated default AdvancementTree.Builder from(AdvancementTree value) throws UnsupportedOperationException
ResettableBuilder
from
in interface CatalogBuilder<AdvancementTree,AdvancementTree.Builder>
from
in interface ResettableBuilder<AdvancementTree,AdvancementTree.Builder>
value
- The built objectUnsupportedOperationException