Package net.glowstone.block.itemtype
Class ItemShovel
java.lang.Object
net.glowstone.block.itemtype.ItemType
net.glowstone.block.itemtype.ItemTool
net.glowstone.block.itemtype.ItemShovel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.block.itemtype.ItemType
ItemType.Context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
onToolRightClick
(GlowPlayer player, GlowBlock target, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc, org.bukkit.inventory.EquipmentSlot hand) Called when a player used (right clicked with) the tool.Methods inherited from class net.glowstone.block.itemtype.ItemTool
rightClickBlock
Methods inherited from class net.glowstone.block.itemtype.ItemType
getContext, getMaterial, getMaterials, getMaxStackSize, getPlaceAs, rightClickAir, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
-
Constructor Details
-
ItemShovel
public ItemShovel()
-
-
Method Details
-
onToolRightClick
public boolean onToolRightClick(GlowPlayer player, GlowBlock target, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc, org.bukkit.inventory.EquipmentSlot hand) Description copied from class:ItemTool
Called when a player used (right clicked with) the tool.- Overrides:
onToolRightClick
in classItemTool
- Parameters:
player
- The player using the tooltarget
- The block right clicked with the toolface
- The clicked BlockFaceholding
- The toolclickedLoc
- The click location on the blockhand
- The hand slot of this item- Returns:
- true if the tool's durability should be decreased, false otherwise
-