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.
|
rightClickBlock
getContext, getId, getMaterial, getMaxStackSize, getPlaceAs, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
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)
ItemTool
onToolRightClick
in class ItemTool
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 itemCopyright © 2021. All rights reserved.