Class: GetDataPacket

net/packets~GetDataPacket

new GetDataPacket(itemsnullable)

Represents a getdata packet.

Parameters:
Name Type Attributes Description
items Array:.<InvItem:> <nullable>
Source:

Extends

  • InvPacket

Methods

(static) fromRaw(data, encnullable) → {GetDataPacket}

Instantiate getdata packet from serialized data.

Parameters:
Name Type Attributes Description
data Buffer
enc String <nullable>
Source:
Returns:
Type
GetDataPacket

(static) fromReader(br) → {GetDataPacket}

Instantiate getdata packet from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:
Returns:
Type
GetDataPacket