Files
KSpigot/docs/-k-spigot/net.axay.kspigot.extensions.events/index.md
bluefireoly 69b2e6cd17 Updated docs
2020-10-16 02:13:42 +02:00

1.8 KiB

title
title
net.axay.kspigot.extensions.events -

//KSpigot/net.axay.kspigot.extensions.events

Package net.axay.kspigot.extensions.events

Functions

Name Summary
cancel [jvm]
Brief description


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


Content
fun PrepareItemCraftEvent.cancel()


Properties

Name Summary
clickedBlockExceptAir [jvm] val PlayerInteractEvent.clickedBlockExceptAir: Block?
interactItem [jvm]

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

val PlayerInteractEntityEvent.interactItem: ItemStack?
isCancelled [jvm]

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

val PrepareItemCraftEvent.isCancelled: Boolean