ServerboundSetCarriedItemPacketUtil

Util class for attaching and working with the ServerboundSetCarriedItemPacket for the carried item.

Types

Link copied to clipboard
data class UseItemEvent(var slot: Int)

Functions

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

Attach the Event to the Player.