OpPlayer

class OpPlayer : IncomingGameMessage

Opplayer messages are fired whenever a player clicks an option on another player, or if messages such as "* wishes to trade with you." are clicked. In the case of latter, only ops 1, 4, 6 and 7 will fire the packet.

Constructors

Link copied to clipboard
constructor(index: Int, controlKey: Boolean, op: Int)

Properties

Link copied to clipboard
open override val category: ClientProtCategory
Link copied to clipboard

whether the control key was held down, used to invert movement speed

Link copied to clipboard
val index: Int

the index of the player who was interacted with

Link copied to clipboard
val op: Int

the option clicked, ranging from 1 to 8 (inclusive)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String