packets
Identify and drop packets, inside packetsend and packetreceive handlers. Reading fields, constructing and mutating are not in v1.
Functions
4 functions. Signatures are generated from the client, so they describe the build you are running.
packets.name() -> stringThe packet's simple class name, e.g. 'PlayerMoveC2SPacket'. The same string the event handler receives as its argument.
packets.isSent() -> booleanOutgoing rather than incoming.
packets.isReceive() -> booleanpackets.cancel()Drops the packet. Equivalent to returning false from the handler.