-
ElementDescriptionuse Protocol#isBaseProtocol()comparison should be done via the comparison methods
-
MethodDescriptionmagic id; prefer using
PacketWrapper.create(PacketType, ByteBuf, UserConnection)
magic id, loses packet type info; usePacketWrapper.setPacketType(PacketType)
magic id; prefer usingProtocolManager.createPacketWrapper(PacketType, ByteBuf, UserConnection)
use Protocol#isBaseProtocol()comparison should be done via the comparison methodsuseDoubleType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseDoubleType.writePrimitive(ByteBuf, double)
for manual reading to avoid wrappinguseFloatType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseFloatType.writePrimitive(ByteBuf, float)
for manual reading to avoid wrappinguseLongType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseLongType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseShortType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseShortType.writePrimitive(ByteBuf, short)
for manual reading to avoid wrappinguseVarIntType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseVarIntType.writePrimitive(ByteBuf, int)
for manual reading to avoid wrappinguseVarLongType.readPrimitive(ByteBuf)
for manual reading to avoid wrappinguseVarLongType.writePrimitive(ByteBuf, long)
for manual reading to avoid wrapping