Interface TreeLayout
-
public interface TreeLayout
Represents the tree (tab) layout of aAdvancementTree
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<TreeLayoutElement>
element(Advancement advancement)
Gets theTreeLayoutElement
for the specifiedAdvancement
,Optional.empty()
will be returned if the advancement is not present in the tree or if there is noDisplayInfo
present.java.util.Collection<TreeLayoutElement>
elements()
Gets all theTreeLayoutElement
s that are present in this layout.AdvancementTree
tree()
Gets theAdvancementTree
this layout is assigned to.
-
-
-
Method Detail
-
tree
AdvancementTree tree()
Gets theAdvancementTree
this layout is assigned to.- Returns:
- The tree
-
elements
java.util.Collection<TreeLayoutElement> elements()
Gets all theTreeLayoutElement
s that are present in this layout.- Returns:
- The tree layout elements
-
element
java.util.Optional<TreeLayoutElement> element(Advancement advancement)
Gets theTreeLayoutElement
for the specifiedAdvancement
,Optional.empty()
will be returned if the advancement is not present in the tree or if there is noDisplayInfo
present.- Parameters:
advancement
- The advancement- Returns:
- The tree layout element
-
-