OpObjT

class OpObjT : IncomingGameMessage

OpObjT messages are fired whenever an interface component is targeted on an obj on the ground, which, as of revision 204, includes using items from the player's inventory on objs - the OpObjU message was deprecated.

Constructors

Link copied to clipboard
constructor(id: Int, x: Int, z: Int, controlKey: Boolean, selectedCombinedId: CombinedId, selectedSub: Int, selectedObj: 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 id: Int

the id of the obj the component was used on

Link copied to clipboard

the bitpacked combination of selectedInterfaceId and selectedComponentId.

Link copied to clipboard

the component id being used on the obj

Link copied to clipboard

the interface id of the selected component

Link copied to clipboard

the obj on the selected subcomponent, or -1 if none exists

Link copied to clipboard

the subcomponent of the selected component, or -1 of none exists

Link copied to clipboard
val x: Int

the absolute x coordinate of the obj

Link copied to clipboard
val z: Int

the absolute z coordinate of the obj

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