SetNpcUpdateOrigin

class SetNpcUpdateOrigin : OutgoingGameMessage

The set npc update origin packet is used to set the relative coordinate for npc info packet. As of revision 222, with the introduction of world entities, it is no longer viable to solely rely on the local player's coordinate, as it may be impacted by a specific world entity. As such, npc info updates should now be prefaced with the origin update to mark the relative coord. For no-world-entity use cases, just pass the player's coordinate in the current build area to get the old behavior.

Constructors

Link copied to clipboard
constructor(originX: Int, originZ: Int)

Properties

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

the x coordinate within the current build area of the player relative to which NPCs will be placed within NPC info packet.

Link copied to clipboard

the z coordinate within the current build area of the player relative to which NPCs will be placed within NPC info packet.

Functions

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