mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Add warning in PacketUtils
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
02d927cc4d
commit
b2a0b91a45
@ -31,6 +31,10 @@ import java.util.zip.Deflater;
|
||||
/**
|
||||
* Utils class for packets. Including writing a {@link ServerPacket} into a {@link ByteBuffer}
|
||||
* for network processing.
|
||||
* <p>
|
||||
* 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.
|
||||
*/
|
||||
public final class PacketUtils {
|
||||
private static final PacketListenerManager PACKET_LISTENER_MANAGER = MinecraftServer.getPacketListenerManager();
|
||||
|
Loading…
Reference in New Issue
Block a user