Class: UnknownPacket

net/packets~UnknownPacket(type, data)

Unknown Packet

Constructor

new UnknownPacket(type, data)

Create an unknown packet.

Parameters:
Name Type Description
type Number | null
data Buffer | null
Properties:
Name Type Description
cmd String
data Buffer
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

(private) read(data, type)

Inject properties from serialized data.

Parameters:
Name Type Description
data BufferReader
type Number
Source:

write(bw)

Serialize unknown packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: