public class PlayerRightClickEvent extends Event
Event.Result
Constructor and Description |
---|
PlayerRightClickEvent(PlayerInteractEvent e) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
java.util.Optional<Block> |
getClickedBlock() |
BlockFace |
getClickedFace() |
EquipmentSlot |
getHand() |
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
PlayerInteractEvent |
getInteractEvent() |
ItemStack |
getItem() |
Player |
getPlayer() |
java.util.Optional<SlimefunItem> |
getSlimefunBlock() |
java.util.Optional<SlimefunItem> |
getSlimefunItem() |
void |
setUseBlock(Event.Result result) |
void |
setUseItem(Event.Result result) |
Event.Result |
useBlock() |
Event.Result |
useItem() |
getEventName, isAsynchronous
public PlayerRightClickEvent(PlayerInteractEvent e)
public static HandlerList getHandlerList()
public HandlerList getHandlers()
getHandlers
in class Event
public PlayerInteractEvent getInteractEvent()
public Player getPlayer()
public ItemStack getItem()
public EquipmentSlot getHand()
public java.util.Optional<Block> getClickedBlock()
public BlockFace getClickedFace()
public java.util.Optional<SlimefunItem> getSlimefunItem()
public java.util.Optional<SlimefunItem> getSlimefunBlock()
public void cancel()
public Event.Result useItem()
public Event.Result useBlock()
public void setUseItem(Event.Result result)
public void setUseBlock(Event.Result result)