public class NettyHandlerCommon extends Object
| Constructor and Description |
|---|
NettyHandlerCommon() |
| Modifier and Type | Method and Description |
|---|---|
static void |
manageError(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause,
String source) |
static NPacket |
readPacketFromByteBuf(Player p,
Version version,
PacketDirection direction,
io.netty.buffer.ByteBuf buf,
String comment)
Read packet from given byte buf
|
public static void manageError(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause,
String source)
public static NPacket readPacketFromByteBuf(Player p, Version version, PacketDirection direction, io.netty.buffer.ByteBuf buf, String comment)
p - the concerned playerversion - the version of playerdirection - the direction of the received bufferbuf - used buffercomment - the comment like the name of the channel