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