ServerboundSelectTradePacketUtil

Util class for attaching and working with the ServerboundSelectTradePacket for user-defined selection of trades.

Types

Link copied to clipboard
data class SelectTradeEvent(var item: Int)

Functions

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

Attach the Event to the Player.