Package com.loohp.limbo.events.player
Class PlayerInteractEvent
java.lang.Object
com.loohp.limbo.events.Event
com.loohp.limbo.events.player.PlayerEvent
com.loohp.limbo.events.player.PlayerInteractEvent
- All Implemented Interfaces:
Cancellable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInteractEvent
(Player player, PlayerInteractEvent.Action action, ItemStack item, BlockState clickedBlock, BlockFace clickedFace, EquipmentSlot hand) -
Method Summary
Modifier and TypeMethodDescriptiongetHand()
getItem()
boolean
void
setCancelled
(boolean cancelled) Methods inherited from class com.loohp.limbo.events.player.PlayerEvent
getPlayer
-
Constructor Details
-
PlayerInteractEvent
public PlayerInteractEvent(Player player, PlayerInteractEvent.Action action, ItemStack item, BlockState clickedBlock, BlockFace clickedFace, EquipmentSlot hand)
-
-
Method Details
-
getAction
-
getItem
-
getClickedBlock
-
getClickedFace
-
getHand
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-