public class BedrockBatchWrapper
extends io.netty.util.AbstractReferenceCounted
| Modifier and Type | Method and Description |
|---|---|
void |
addPacket(BedrockPacketWrapper wrapper) |
protected boolean |
canEqual(java.lang.Object other) |
static BedrockBatchWrapper |
create(int subClientId,
org.cloudburstmc.protocol.bedrock.packet.BedrockPacket... packets) |
protected void |
deallocate() |
boolean |
equals(java.lang.Object o) |
org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm |
getAlgorithm() |
io.netty.buffer.ByteBuf |
getCompressed() |
java.util.Set<PacketFlag> |
getFlags() |
io.netty.util.internal.ObjectPool.Handle<BedrockBatchWrapper> |
getHandle() |
java.util.List<BedrockPacketWrapper> |
getPackets() |
io.netty.buffer.ByteBuf |
getUncompressed() |
boolean |
hasFlag(PacketFlag flag) |
int |
hashCode() |
boolean |
isModified() |
void |
modify() |
static BedrockBatchWrapper |
newInstance() |
static BedrockBatchWrapper |
newInstance(io.netty.buffer.ByteBuf compressed,
io.netty.buffer.ByteBuf uncompressed) |
BedrockBatchWrapper |
retain() |
BedrockBatchWrapper |
retain(int increment) |
void |
setAlgorithm(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm) |
void |
setCompressed(io.netty.buffer.ByteBuf compressed) |
void |
setCompressed(io.netty.buffer.ByteBuf compressed,
org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm) |
void |
setFlag(PacketFlag flag) |
void |
setFlags(java.util.Set<PacketFlag> flags) |
void |
setModified(boolean modified) |
void |
setPackets(java.util.List<BedrockPacketWrapper> packets) |
void |
setUncompressed(io.netty.buffer.ByteBuf uncompressed) |
java.lang.String |
toString() |
io.netty.util.ReferenceCounted |
touch(java.lang.Object o) |
void |
unsetFlag(PacketFlag flag) |
public static BedrockBatchWrapper newInstance()
public static BedrockBatchWrapper newInstance(io.netty.buffer.ByteBuf compressed, io.netty.buffer.ByteBuf uncompressed)
public static BedrockBatchWrapper create(int subClientId, org.cloudburstmc.protocol.bedrock.packet.BedrockPacket... packets)
protected void deallocate()
deallocate in class io.netty.util.AbstractReferenceCountedpublic void addPacket(BedrockPacketWrapper wrapper)
public void modify()
public void setCompressed(io.netty.buffer.ByteBuf compressed)
public void setCompressed(io.netty.buffer.ByteBuf compressed,
org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm)
public void setUncompressed(io.netty.buffer.ByteBuf uncompressed)
public void setFlag(PacketFlag flag)
public boolean hasFlag(PacketFlag flag)
public void unsetFlag(PacketFlag flag)
public io.netty.util.ReferenceCounted touch(java.lang.Object o)
public BedrockBatchWrapper retain()
retain in interface io.netty.util.ReferenceCountedretain in class io.netty.util.AbstractReferenceCountedpublic BedrockBatchWrapper retain(int increment)
retain in interface io.netty.util.ReferenceCountedretain in class io.netty.util.AbstractReferenceCountedpublic io.netty.util.internal.ObjectPool.Handle<BedrockBatchWrapper> getHandle()
public io.netty.buffer.ByteBuf getCompressed()
public org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm getAlgorithm()
public io.netty.buffer.ByteBuf getUncompressed()
public java.util.List<BedrockPacketWrapper> getPackets()
public boolean isModified()
public java.util.Set<PacketFlag> getFlags()
public void setAlgorithm(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm)
public void setPackets(java.util.List<BedrockPacketWrapper> packets)
public void setModified(boolean modified)
public void setFlags(java.util.Set<PacketFlag> flags)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object