Class VeinMinerToolCategoryHand

java.lang.Object
wtf.choco.veinminer.tool.VeinMinerToolCategory
wtf.choco.veinminer.tool.VeinMinerToolCategoryHand
All Implemented Interfaces:
Comparable<VeinMinerToolCategory>

public final class VeinMinerToolCategoryHand extends VeinMinerToolCategory
A more specific type of VeinMinerToolCategory whereby the hand category is being represented. No items may be added to or removed from this category.
  • Constructor Details

    • VeinMinerToolCategoryHand

      public VeinMinerToolCategoryHand(@NotNull @NotNull BlockList blockList, @NotNull @NotNull VeinMiningConfig config)
      Construct a new VeinMinerToolCategoryHand.
      Parameters:
      blockList - the category block list
      config - the category config
  • Method Details

    • addItem

      public boolean addItem(@NotNull @NotNull ItemType itemType)
      Description copied from class: VeinMinerToolCategory
      Add an item to this category.
      Overrides:
      addItem in class VeinMinerToolCategory
      Parameters:
      itemType - the item type to add
      Returns:
      true if the item list was modified, false if the item was already added
    • removeItem

      public boolean removeItem(@NotNull @NotNull ItemType itemType)
      Description copied from class: VeinMinerToolCategory
      Remove an item from this category.
      Overrides:
      removeItem in class VeinMinerToolCategory
      Parameters:
      itemType - the item type to remove
      Returns:
      true if the item list was modified, false if the item had not been added
    • containsItem

      public boolean containsItem(@NotNull @NotNull ItemType item)
      Description copied from class: VeinMinerToolCategory
      Check whether or not this category contains the given item.
      Overrides:
      containsItem in class VeinMinerToolCategory
      Parameters:
      item - the item to check
      Returns:
      true if this category contains the item, false otherwise