Added documentation
This commit is contained in:
@@ -10,6 +10,11 @@ import org.bukkit.event.player.PlayerInteractEvent
|
||||
import org.bukkit.inventory.EquipmentSlot
|
||||
import org.bukkit.inventory.ItemStack
|
||||
|
||||
/**
|
||||
* Returns the item used in the interaction
|
||||
* with the use of the [EquipmentSlot] returned
|
||||
* by the value [PlayerInteractEntityEvent.hand].
|
||||
*/
|
||||
val PlayerInteractEntityEvent.interactItem: ItemStack?
|
||||
get() {
|
||||
val p: Player = this.player
|
||||
|
Reference in New Issue
Block a user