public class ItemTool extends ItemType
ItemType.Context
Constructor and Description |
---|
ItemTool() |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
void |
rightClickBlock(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 right-clicks on a block while holding this item.
|
getContext, getId, getMaterial, getMaxStackSize, getPlaceAs, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
public final void rightClickBlock(GlowPlayer player, GlowBlock target, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc, org.bukkit.inventory.EquipmentSlot hand)
ItemType
rightClickBlock
in class ItemType
player
- The playertarget
- The block the player right-clickedface
- The face on which the click occurredholding
- The ItemStack the player was holdingclickedLoc
- The coordinates at which the click occurredhand
- The hand slot of this itemprotected 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)
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.