Update InteractEventExtensions.kt
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package net.axay.kspigot.extensions.events
|
package net.axay.kspigot.extensions.events
|
||||||
|
|
||||||
|
import net.axay.kspigot.annotations.UnsafeImplementation
|
||||||
import org.bukkit.block.Block
|
import org.bukkit.block.Block
|
||||||
import org.bukkit.entity.Entity
|
import org.bukkit.entity.Entity
|
||||||
import org.bukkit.entity.Player
|
import org.bukkit.entity.Player
|
||||||
@@ -19,6 +20,7 @@ val PlayerInteractEntityEvent.interactItem: ItemStack?
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@UnsafeImplementation
|
||||||
val PlayerInteractEvent.clickedBlockExceptAir: Block?
|
val PlayerInteractEvent.clickedBlockExceptAir: Block?
|
||||||
get() {
|
get() {
|
||||||
val p: Player = this.player
|
val p: Player = this.player
|
||||||
|
Reference in New Issue
Block a user