public class NoopCompression extends java.lang.Object implements BatchCompression
| Constructor and Description |
|---|
NoopCompression() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg) |
io.netty.buffer.ByteBuf |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg) |
org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm |
getAlgorithm() |
int |
getLevel() |
void |
setLevel(int level) |
public io.netty.buffer.ByteBuf encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg)
throws java.lang.Exception
encode in interface BatchCompressionjava.lang.Exceptionpublic io.netty.buffer.ByteBuf decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg)
throws java.lang.Exception
decode in interface BatchCompressionjava.lang.Exceptionpublic org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm getAlgorithm()
getAlgorithm in interface BatchCompressionpublic void setLevel(int level)
setLevel in interface BatchCompressionpublic int getLevel()
getLevel in interface BatchCompression