ServerboundContainerButtonClickPacketUtil

Util class for attaching and working with the ServerboundContainerButtonClickPacket for user-defined clicks in a GUI by the player.

Types

Link copied to clipboard
data class ButtonClickEvent(var containerId: Int, var buttonId: Int)

Functions

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

Attach the Event to the Player.