Package net.axay.kspigot.extensions.events

Functions

cancel
Link copied to clipboard
fun PrepareItemCraftEvent.cancel()
"Cancels" this event by setting the result to Material.AIR.

Properties

clickedBlockExceptAir
Link copied to clipboard
val PlayerInteractEvent.clickedBlockExceptAir: Block?
interactItem
Link copied to clipboard
val PlayerInteractEntityEvent.interactItem: ItemStack?
Returns the item used in the interaction with the use of the EquipmentSlot returned by the value PlayerInteractEntityEvent.hand.
isCancelled
Link copied to clipboard
val PrepareItemCraftEvent.isCancelled: Boolean
Checks if the event is "cancelled" by returning if the material of the result is equal to Material.AIR.
isLeftClick
Link copied to clipboard
val Action.isLeftClick: Boolean
isRightClick
Link copied to clipboard
val Action.isRightClick: Boolean