public class MinecraftDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
Constructor and Description |
---|
MinecraftDecoder(Protocol protocol,
boolean server,
int protocolVersion) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
void |
setProtocol(Protocol protocol) |
void |
setProtocolVersion(int protocolVersion) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public MinecraftDecoder(Protocol protocol, boolean server, int protocolVersion)
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
Exception
public void setProtocol(Protocol protocol)
public void setProtocolVersion(int protocolVersion)
Copyright © 2012–2020 SpigotMC. All rights reserved.