public interface Advancement extends CatalogType, TextRepresentable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Advancement.Builder
A builder to create
Advancements. |
| Modifier and Type | Method and Description |
|---|---|
static Advancement.Builder |
builder()
Creates a new
Advancement.Builder to create Advancements. |
Collection<Advancement> |
getChildren()
Gets all the children
Advancements. |
AdvancementCriterion |
getCriterion()
Gets all the
AdvancementCriterion that should be achieved
before this advancement is unlocked. |
Optional<DisplayInfo> |
getDisplayInfo()
Gets the
DisplayInfo of this advancement, if present. |
Optional<Advancement> |
getParent()
Gets the parent
Advancement, if present. |
Optional<AdvancementTree> |
getTree()
Gets the
AdvancementTree this advancement is located in,
will only be present if the root advancement was used to create
a AdvancementTree. |
List<Text> |
toToastText()
Gets the
Text lines that would be used to
display a toast notification. |
getId, getNameapplyTo, toTextstatic Advancement.Builder builder()
Advancement.Builder to create Advancements.Optional<AdvancementTree> getTree()
AdvancementTree this advancement is located in,
will only be present if the root advancement was used to create
a AdvancementTree.Collection<Advancement> getChildren()
Advancements.AdvancementCriterion getCriterion()
AdvancementCriterion that should be achieved
before this advancement is unlocked. AdvancementCriterion.EMPTY
will be returned if no criterion was assigned.
This AdvancementCriterion can be a AND or OR operation that
contains multiple possible AdvancementCriterions.
Optional<Advancement> getParent()
Advancement, if present.Optional<DisplayInfo> getDisplayInfo()
DisplayInfo of this advancement, if present.