Class Regular_Node

java.lang.Object
scrapper.readers.items.baseNode.BaseItem
scrapper.readers.items.Regular_Node
All Implemented Interfaces:
Item
Direct Known Subclasses:
Unspoiled_Node

public class Regular_Node extends BaseItem implements Item
See Also:
  • Constructor Details

    • Regular_Node

      public Regular_Node(String item, String zone, String cords, String extra, int level, String type)
      Default constructor. All arguments map to internal variables. This covers the classes BNT and Miner. When there is more than 1 item, make another of this item (creates mass duplicates).
    • Regular_Node

      public Regular_Node(String[] arr)
      Used when file is already formatted.
      Parameters:
      arr - array to input instead of manual input.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Output format as follows after standard items: level,type
    • getLevel

      public int getLevel()
    • toLinkedHashmap

      public LinkedHashMap<String,String> toLinkedHashmap()
      Specified by:
      toLinkedHashmap in interface Item
      Returns:
      ItemType in LinkedHashmap form. Keys represent what the value is. For example, key = level, value = 5.