Class TreasureTree


  • public class TreasureTree
    extends java.lang.Object
    Stores all defined treasure lists.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreasureTree​(@NotNull javax.swing.tree.DefaultMutableTreeNode root)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreasureTree

        public TreasureTree​(@NotNull
                            @NotNull javax.swing.tree.DefaultMutableTreeNode root)
        Creates a new instance.
        Parameters:
        root - the root node for normal treasure lists
    • Method Detail

      • get

        @Nullable
        public @Nullable TreasureTreeNode get​(@NotNull
                                              @NotNull java.lang.String name)
        Returns a treasure list by name.
        Parameters:
        name - the name
        Returns:
        the treasure name or null if it does not exist
      • putAll

        public void putAll​(java.lang.Iterable<TreasureTreeNode> treasureTreeNodes)
        Parameters:
        treasureTreeNodes - the treasure tree node to add
      • getRoot

        @NotNull
        public @NotNull javax.swing.tree.DefaultMutableTreeNode getRoot()
        Returns the root node for normal treasure lists.
        Returns:
        the root node