Interface TreeLayout
public interface TreeLayout
Represents the tree (tab) layout of a
AdvancementTree.-
Method Summary
Modifier and TypeMethodDescriptionelement(Advancement advancement) Gets theTreeLayoutElementfor the specifiedAdvancement,Optional.empty()will be returned if the advancement is not present in the tree or if there is noDisplayInfopresent.elements()Gets all theTreeLayoutElements that are present in this layout.tree()Gets theAdvancementTreethis layout is assigned to.
-
Method Details
-
tree
AdvancementTree tree()Gets theAdvancementTreethis layout is assigned to.- Returns:
- The tree
-
elements
Collection<TreeLayoutElement> elements()Gets all theTreeLayoutElements that are present in this layout.- Returns:
- The tree layout elements
-
element
Gets theTreeLayoutElementfor the specifiedAdvancement,Optional.empty()will be returned if the advancement is not present in the tree or if there is noDisplayInfopresent.- Parameters:
advancement- The advancement- Returns:
- The tree layout element
-