public class MinecraftEncoder extends io.netty.handler.codec.MessageToByteEncoder<DefinedPacket>
| Constructor and Description |
|---|
MinecraftEncoder(Protocol protocol,
boolean server,
int protocolVersion) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
DefinedPacket msg,
io.netty.buffer.ByteBuf out) |
void |
setProtocol(Protocol protocol) |
void |
setProtocolVersion(int protocolVersion) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic MinecraftEncoder(Protocol protocol, boolean server, int protocolVersion)
protected void encode(io.netty.channel.ChannelHandlerContext ctx,
DefinedPacket msg,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<DefinedPacket>Exceptionpublic void setProtocol(Protocol protocol)
public void setProtocolVersion(int protocolVersion)
Copyright © 2015–2020 WaterfallMC. All rights reserved.