ServerPacket class abstract
The basis of each and every packet for post 1.6 servers.
Constructors
Properties
Methods
-
clone(
) → ServerPacket - Clone this packet and create a new instance of it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
PacketReader reader) → void -
Read a single packet from given
reader
's byte data. -
toString(
) → String -
A string representation of this object.
inherited
-
writePacket(
PacketWriter writer) → void -
Write a single packet into given
writer
's byte data.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
readPacket(
int id, PacketReader reader) → ServerPacket? - Read a single packet by ID.
-
registerClientboundPacket(
ServerPacket packet) → void -
Register a new clientbound packet. If a clientbound packet
with given ID is already registered,
packet
will be ignored.