Class PacketUtils

java.lang.Object
net.minestom.server.utils.PacketUtils

public final class PacketUtils extends Object
Utils class for packets. Including writing a ServerPacket into a ByteBuffer for network processing.

Note that all methods are mostly internal and can change at any moment. This is due to their very unsafe nature (use of local buffers as cache) and their potential performance impact. Be sure to check the implementation code.