Class: BlockPacket

net/packets~BlockPacket(block)

Block Packet

Constructor

new BlockPacket(block)

Create a block packet.

Parameters:
Name Type Description
block Block | null
Properties:
Name Type Description
block Block
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

(private) read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

write(bw)

Serialize block packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: