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) |
Protocol |
getProtocol() |
void |
setProtocol(Protocol protocol) |
void |
setProtocolVersion(int protocolVersion) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic 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>Exceptionpublic Protocol getProtocol()
public void setProtocol(Protocol protocol)
public void setProtocolVersion(int protocolVersion)
Copyright © 2012–2024 SpigotMC. All rights reserved.