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
ConstructorsConstructorDescriptionVeinMinerToolCategoryHand(@NotNull BlockList blockList, @NotNull VeinMiningConfig config) Construct a newVeinMinerToolCategoryHand. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd an item to this category.booleancontainsItem(@NotNull ItemType item) Check whether or not this category contains the given item.booleanremoveItem(@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:VeinMinerToolCategoryAdd an item to this category.- Overrides:
addItemin 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:VeinMinerToolCategoryRemove an item from this category.- Overrides:
removeItemin 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:VeinMinerToolCategoryCheck whether or not this category contains the given item.- Overrides:
containsItemin classVeinMinerToolCategory- Parameters:
item- the item to check- Returns:
- true if this category contains the item, false otherwise
-