public interface Advancement extends CatalogType, TextRepresentable
Modifier and Type | Interface and Description |
---|---|
static interface |
Advancement.Builder
A builder to create
Advancement s. |
Modifier and Type | Method and Description |
---|---|
static Advancement.Builder |
builder()
Creates a new
Advancement.Builder to create Advancement s. |
Collection<Advancement> |
getChildren()
Gets all the children
Advancement s. |
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, getName
applyTo, toText
static Advancement.Builder builder()
Advancement.Builder
to create Advancement
s.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()
Advancement
s.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 AdvancementCriterion
s.
Optional<Advancement> getParent()
Advancement
, if present.Optional<DisplayInfo> getDisplayInfo()
DisplayInfo
of this advancement, if present.