Package net.axay.kspigot.extensions.events

Functions

cancel
Link copied to clipboard

"Cancels" this event by setting the result to Material.AIR.

fun PrepareItemCraftEvent.cancel()

Properties

clickedBlockExceptAir
Link copied to clipboard
val PlayerInteractEvent.clickedBlockExceptAir: Block?
interactItem
Link copied to clipboard

Returns the item used in the interaction with the use of the EquipmentSlot returned by the value PlayerInteractEntityEvent.hand.

val PlayerInteractEntityEvent.interactItem: ItemStack?
isCancelled
Link copied to clipboard

Checks if the event is "cancelled" by returning if the material of the result is equal to Material.AIR.

val PrepareItemCraftEvent.isCancelled: Boolean