public class TreasureTree
extends java.lang.Object
Constructor and Description |
---|
TreasureTree(@NotNull javax.swing.tree.DefaultMutableTreeNode root)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@Nullable TreasureTreeNode |
get(@NotNull java.lang.String name)
Returns a treasure list by name.
|
@NotNull javax.swing.tree.DefaultMutableTreeNode |
getRoot()
Returns the root node for normal treasure lists.
|
void |
putAll(java.lang.Iterable<TreasureTreeNode> treasureTreeNodes)
Adds all
TreasureTreeNode . |
public TreasureTree(@NotNull @NotNull javax.swing.tree.DefaultMutableTreeNode root)
root
- the root node for normal treasure lists@Nullable public @Nullable TreasureTreeNode get(@NotNull @NotNull java.lang.String name)
name
- the namenull
if it does not existpublic void putAll(java.lang.Iterable<TreasureTreeNode> treasureTreeNodes)
TreasureTreeNode
.treasureTreeNodes
- the treasure tree node to add@NotNull public @NotNull javax.swing.tree.DefaultMutableTreeNode getRoot()