public class ItemHoe extends ItemTool
ItemType.Context| Constructor and Description |
|---|
ItemHoe() |
| Modifier and Type | Method and Description |
|---|---|
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)
Called when a player used (right clicked with) the tool.
|
rightClickBlockgetContext, getId, getMaterial, getMaxStackSize, getPlaceAs, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toStringpublic 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)
ItemToolonToolRightClick in class ItemToolplayer - 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 itemCopyright © 2021. All rights reserved.