public class AvailableCommandsSerializer_v291 extends Object implements BedrockPacketSerializer<AvailableCommandsPacket>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ARG_FLAG_ENUM |
protected static int |
ARG_FLAG_POSTFIX |
protected static int |
ARG_FLAG_SOFT_ENUM |
protected static int |
ARG_FLAG_VALID |
protected static CommandData.Flag[] |
FLAGS |
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() |
protected static final int ARG_FLAG_VALID
protected static final int ARG_FLAG_ENUM
protected static final int ARG_FLAG_POSTFIX
protected static final int ARG_FLAG_SOFT_ENUM
protected static final ToIntFunction<ByteBuf> READ_BYTE
protected static final ToIntFunction<ByteBuf> READ_SHORT
protected static final ToIntFunction<ByteBuf> READ_INT
protected static final ObjIntConsumer<ByteBuf> WRITE_BYTE
protected static final ObjIntConsumer<ByteBuf> WRITE_SHORT
protected static final ObjIntConsumer<ByteBuf> WRITE_INT
protected static final CommandData.Flag[] FLAGS
protected static final CommandParamOption[] OPTIONS
public void serialize(ByteBuf buffer, BedrockCodecHelper helper, AvailableCommandsPacket packet)
serialize in interface BedrockPacketSerializer<AvailableCommandsPacket>public void deserialize(ByteBuf buffer, BedrockCodecHelper helper, AvailableCommandsPacket packet)
deserialize in interface BedrockPacketSerializer<AvailableCommandsPacket>protected void writeEnums(ByteBuf buffer, BedrockCodecHelper helper, List<String> values, List<CommandEnumData> enums)
protected void readEnums(ByteBuf buffer, BedrockCodecHelper helper, List<String> values, List<CommandEnumData> enums)
protected void writeCommand(ByteBuf buffer, BedrockCodecHelper helper, CommandData commandData, List<CommandEnumData> enums, List<CommandEnumData> softEnums, List<String> postFixes)
protected CommandData readCommand(ByteBuf buffer, BedrockCodecHelper helper, List<CommandEnumData> enums, List<CommandEnumData> softEnums, List<String> postfixes, Set<Runnable> delayedTasks)
protected void writeFlags(ByteBuf buffer, Set<CommandData.Flag> flags)
protected Set<CommandData.Flag> readFlags(ByteBuf buffer)
protected void writeParameter(ByteBuf buffer, BedrockCodecHelper helper, CommandParamData param, List<CommandEnumData> enums, List<CommandEnumData> softEnums, List<String> postfixes)
protected CommandParamData readParameter(ByteBuf buffer, BedrockCodecHelper helper, List<CommandEnumData> enums, List<CommandEnumData> softEnums, List<String> postfixes, Set<Runnable> delayedTasks)
Copyright © 2018–2022 CloudburstMC. All rights reserved.