ServerboundInteractPacketUtil

Util class for attaching and working with the ServerboundInteractPacket for user-defined interactions by the player.

Types

Link copied to clipboard
data class InteractEvent(var entityId: Int, var isAttack: Boolean, var sneakKeyPressed: Boolean, var clickActionType: ServerboundInteractPacketUtil.ClickActionType)

Functions

Link copied to clipboard
fun attach(name: String, plugin: JavaPlugin, player: Player, callback: ServerboundInteractPacketUtil.InteractEvent.() -> Unit): Boolean

Attach the Event to the Player.