public class AvailableCommandsSerializer_v291 extends Object implements BedrockPacketSerializer<AvailableCommandsPacket>
| Modifier and Type | Field and Description |
|---|---|
protected static CommandData.Flag[] |
FLAGS |
static AvailableCommandsSerializer_v291 |
INSTANCE |
protected static CommandParamOption[] |
OPTIONS |
protected static ToIntFunction<ByteBuf> |
READ_BYTE |
protected static ToIntFunction<ByteBuf> |
READ_INT |
protected static ToIntFunction<ByteBuf> |
READ_SHORT |
protected static ObjIntConsumer<ByteBuf> |
WRITE_BYTE |
protected static ObjIntConsumer<ByteBuf> |
WRITE_INT |
protected static ObjIntConsumer<ByteBuf> |
WRITE_SHORT |
| Constructor and Description |
|---|
AvailableCommandsSerializer_v291() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialize, serializepublic static final AvailableCommandsSerializer_v291 INSTANCE
protected static final ObjIntConsumer<ByteBuf> WRITE_BYTE
protected static final ObjIntConsumer<ByteBuf> WRITE_SHORT
protected static final ObjIntConsumer<ByteBuf> WRITE_INT
protected static final ToIntFunction<ByteBuf> READ_BYTE
protected static final ToIntFunction<ByteBuf> READ_SHORT
protected static final ToIntFunction<ByteBuf> READ_INT
protected static final CommandData.Flag[] FLAGS
protected static final CommandParamOption[] OPTIONS
public void serialize(ByteBuf buffer, BedrockPacketHelper helper, AvailableCommandsPacket packet)
serialize in interface BedrockPacketSerializer<AvailableCommandsPacket>serialize in interface com.nukkitx.protocol.serializer.PacketSerializer<AvailableCommandsPacket,BedrockPacketHelper>public void deserialize(ByteBuf buffer, BedrockPacketHelper helper, AvailableCommandsPacket packet)
deserialize in interface BedrockPacketSerializer<AvailableCommandsPacket>deserialize in interface com.nukkitx.protocol.serializer.PacketSerializer<AvailableCommandsPacket,BedrockPacketHelper>protected void writeEnums(ByteBuf buffer, BedrockPacketHelper helper, List<String> values, List<CommandEnumData> enums)
protected void readEnums(ByteBuf buffer, BedrockPacketHelper helper, List<String> values, List<CommandEnumData> enums)
protected void writeCommand(ByteBuf buffer, BedrockPacketHelper helper, CommandData commandData, List<CommandEnumData> enums, List<CommandEnumData> softEnums, List<String> postFixes)
protected CommandData.Builder readCommand(ByteBuf buffer, BedrockPacketHelper helper)
protected void writeParameter(ByteBuf buffer, BedrockPacketHelper helper, CommandParamData param, List<CommandEnumData> enums, List<CommandEnumData> softEnums, List<String> postFixes)
protected CommandParamData.Builder readParameter(ByteBuf buffer, BedrockPacketHelper helper)
Copyright © 2018–2022 NukkitX. All rights reserved.