@Immutable public final class BedrockPacketCodec extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BedrockPacketCodec.Builder |
| Constructor and Description |
|---|
BedrockPacketCodec() |
| Modifier and Type | Method and Description |
|---|---|
static BedrockPacketCodec.Builder |
builder() |
int |
getId(BedrockPacket packet) |
BedrockPacket |
tryDecode(io.netty.buffer.ByteBuf buf) |
io.netty.buffer.ByteBuf |
tryEncode(BedrockPacket packet) |
public static BedrockPacketCodec.Builder builder()
public BedrockPacket tryDecode(io.netty.buffer.ByteBuf buf) throws PacketSerializeException
PacketSerializeExceptionpublic io.netty.buffer.ByteBuf tryEncode(BedrockPacket packet) throws PacketSerializeException
PacketSerializeExceptionpublic int getId(BedrockPacket packet)
Copyright © 2018–2019 NukkitX. All rights reserved.