Interface AdvancementTemplate
- All Superinterfaces:
DataPackEntry<AdvancementTemplate>
,DataSerializable
,Keyed
,ResourceKeyed
A template for an
Advancement
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the advancementstatic AdvancementTemplate.Builder
builder()
Creates a newAdvancementTemplate.Builder
to createAdvancement
s.tree()
Gets theAdvancementTree
of this advancement will only be present if it is a root advancement.Methods inherited from interface org.spongepowered.api.datapack.DataPackEntry
pack
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
Methods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
Method Details
-
builder
Creates a newAdvancementTemplate.Builder
to createAdvancement
s.- Returns:
- The new builder
-
advancement
Advancement advancement()Return the advancement- Returns:
- The advancement
-
tree
Optional<AdvancementTree> tree()Gets theAdvancementTree
of this advancement will only be present if it is a root advancement.- Returns:
- The advancement tree
-