public class PlayerItemInteractEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
| Constructor and Description |
|---|
PlayerItemInteractEvent(org.bukkit.entity.Player who,
org.bukkit.event.block.Action action,
org.bukkit.inventory.ItemStack item,
org.bukkit.block.Block clickedBlock,
org.bukkit.block.BlockFace clickedFace,
org.bukkit.inventory.EquipmentSlot hand) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.event.block.Action |
getAction() |
org.bukkit.block.Block |
getClickedBlock() |
org.bukkit.block.BlockFace |
getClickedFace() |
org.bukkit.inventory.EquipmentSlot |
getHand() |
org.bukkit.event.HandlerList |
getHandlers() |
org.bukkit.inventory.ItemStack |
getItem() |
org.bukkit.entity.Player |
getWho() |
boolean |
hasItem() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
public PlayerItemInteractEvent(org.bukkit.entity.Player who,
org.bukkit.event.block.Action action,
org.bukkit.inventory.ItemStack item,
org.bukkit.block.Block clickedBlock,
org.bukkit.block.BlockFace clickedFace,
org.bukkit.inventory.EquipmentSlot hand)
public org.bukkit.entity.Player getWho()
public org.bukkit.event.block.Action getAction()
public org.bukkit.inventory.ItemStack getItem()
public org.bukkit.block.Block getClickedBlock()
public org.bukkit.block.BlockFace getClickedFace()
public org.bukkit.inventory.EquipmentSlot getHand()
public boolean hasItem()
public boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface org.bukkit.event.Cancellablepublic org.bukkit.event.HandlerList getHandlers()
getHandlers in class org.bukkit.event.EventCopyright © 2023. All rights reserved.