Class ItemDropClientPacket

Dropping items on the ground

Hierarchy

  • ItemDropClientPacket

Constructors

Properties

_byteSize: number = 0
_coords: ByteCoords = null
_item: ThreeItem = null

Accessors

  • get byteSize(): number
  • Returns the size of the data that this was deserialized from.

    Returns

    The size of the data that this was deserialized from

    Returns number

  • get coords(): ByteCoords
  • The official client sends 255 byte values for the coords if an item is dropped via
    the GUI button.
    255 values here should be interpreted to mean "drop at current coords".
    Otherwise, the x and y fields contain encoded numbers that must be explicitly
    decoded to get the actual x and y values.

    Returns ByteCoords

  • set coords(coords: ByteCoords): void
  • The official client sends 255 byte values for the coords if an item is dropped via
    the GUI button.
    255 values here should be interpreted to mean "drop at current coords".
    Otherwise, the x and y fields contain encoded numbers that must be explicitly
    decoded to get the actual x and y values.

    Parameters

    Returns void

  • get item(): ThreeItem
  • Returns ThreeItem

  • set item(item: ThreeItem): void
  • Parameters

    Returns void

  • get action(): PacketAction
  • Returns the packet action associated with this type.

    Returns

    The packet action associated with this type

    Returns PacketAction

  • get family(): PacketFamily
  • Returns the packet family associated with this type.

    Returns

    The packet family associated with this type

    Returns PacketFamily

Methods

  • Parameters

    Returns void

  • Deserializes an instance of ItemDropClientPacket from the provided EoReader.

    Returns

    The deserialized data

    Parameters

    • reader: EoReader

      the reader that the data will be deserialized from

    Returns ItemDropClientPacket

  • Serializes an instance of ItemDropClientPacket to the provided EoWriter.

    Parameters

    Returns void

Generated using TypeDoc