Package wtf.choco.veinminer.tool
Class VeinMinerToolCategoryHand
java.lang.Object
wtf.choco.veinminer.tool.VeinMinerToolCategory
wtf.choco.veinminer.tool.VeinMinerToolCategoryHand
- All Implemented Interfaces:
Comparable<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 Summary
ConstructorDescriptionVeinMinerToolCategoryHand
(@NotNull BlockList blockList, @NotNull VeinMiningConfig config) Construct a newVeinMinerToolCategoryHand
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Add an item to this category.boolean
containsItem
(@NotNull ItemType item) Check whether or not this category contains the given item.boolean
removeItem
(@NotNull ItemType itemType) Remove an item from this category.Methods inherited from class wtf.choco.veinminer.tool.VeinMinerToolCategory
compareTo, equals, getBlockList, getConfig, getId, getItems, getNBTValue, getPriority, hashCode, toString
-
Constructor Details
-
VeinMinerToolCategoryHand
public VeinMinerToolCategoryHand(@NotNull @NotNull BlockList blockList, @NotNull @NotNull VeinMiningConfig config) Construct a newVeinMinerToolCategoryHand
.- Parameters:
blockList
- the category block listconfig
- the category config
-
-
Method Details
-
addItem
Description copied from class:VeinMinerToolCategory
Add an item to this category.- Overrides:
addItem
in classVeinMinerToolCategory
- Parameters:
itemType
- the item type to add- Returns:
- true if the item list was modified, false if the item was already added
-
removeItem
Description copied from class:VeinMinerToolCategory
Remove an item from this category.- Overrides:
removeItem
in classVeinMinerToolCategory
- Parameters:
itemType
- the item type to remove- Returns:
- true if the item list was modified, false if the item had not been added
-
containsItem
Description copied from class:VeinMinerToolCategory
Check whether or not this category contains the given item.- Overrides:
containsItem
in classVeinMinerToolCategory
- Parameters:
item
- the item to check- Returns:
- true if this category contains the item, false otherwise
-