public class AvailableCommandsSerializer_v291 extends java.lang.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 java.util.function.ToIntFunction<io.netty.buffer.ByteBuf> |
READ_BYTE |
protected static java.util.function.ToIntFunction<io.netty.buffer.ByteBuf> |
READ_INT |
protected static java.util.function.ToIntFunction<io.netty.buffer.ByteBuf> |
READ_SHORT |
protected static java.util.function.ObjIntConsumer<io.netty.buffer.ByteBuf> |
WRITE_BYTE |
protected static java.util.function.ObjIntConsumer<io.netty.buffer.ByteBuf> |
WRITE_INT |
protected static java.util.function.ObjIntConsumer<io.netty.buffer.ByteBuf> |
WRITE_SHORT |
| Constructor and Description |
|---|
AvailableCommandsSerializer_v291(org.cloudburstmc.protocol.common.util.TypeMap<CommandParam> paramTypeMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
AvailableCommandsPacket packet) |
protected CommandData |
readCommand(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
java.util.List<CommandEnumData> enums,
java.util.List<CommandEnumData> softEnums,
java.util.List<java.lang.String> postfixes,
java.util.Set<java.lang.Runnable> delayedTasks) |
protected void |
readEnums(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
java.util.List<java.lang.String> values,
java.util.List<CommandEnumData> enums) |
protected java.util.Set<CommandData.Flag> |
readFlags(io.netty.buffer.ByteBuf buffer) |
protected CommandParamData |
readParameter(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
java.util.List<CommandEnumData> enums,
java.util.List<CommandEnumData> softEnums,
java.util.List<java.lang.String> postfixes,
java.util.Set<java.lang.Runnable> delayedTasks) |
void |
serialize(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
AvailableCommandsPacket packet) |
protected void |
writeCommand(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
CommandData commandData,
java.util.List<CommandEnumData> enums,
java.util.List<CommandEnumData> softEnums,
java.util.List<java.lang.String> postFixes) |
protected void |
writeEnums(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
java.util.List<java.lang.String> values,
java.util.List<CommandEnumData> enums) |
protected void |
writeFlags(io.netty.buffer.ByteBuf buffer,
java.util.Set<CommandData.Flag> flags) |
protected void |
writeParameter(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
CommandParamData param,
java.util.List<CommandEnumData> enums,
java.util.List<CommandEnumData> softEnums,
java.util.List<java.lang.String> postfixes) |
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 java.util.function.ToIntFunction<io.netty.buffer.ByteBuf> READ_BYTE
protected static final java.util.function.ToIntFunction<io.netty.buffer.ByteBuf> READ_SHORT
protected static final java.util.function.ToIntFunction<io.netty.buffer.ByteBuf> READ_INT
protected static final java.util.function.ObjIntConsumer<io.netty.buffer.ByteBuf> WRITE_BYTE
protected static final java.util.function.ObjIntConsumer<io.netty.buffer.ByteBuf> WRITE_SHORT
protected static final java.util.function.ObjIntConsumer<io.netty.buffer.ByteBuf> WRITE_INT
protected static final CommandData.Flag[] FLAGS
protected static final CommandParamOption[] OPTIONS
public AvailableCommandsSerializer_v291(org.cloudburstmc.protocol.common.util.TypeMap<CommandParam> paramTypeMap)
public void serialize(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
AvailableCommandsPacket packet)
serialize in interface BedrockPacketSerializer<AvailableCommandsPacket>public void deserialize(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
AvailableCommandsPacket packet)
deserialize in interface BedrockPacketSerializer<AvailableCommandsPacket>protected void writeEnums(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
java.util.List<java.lang.String> values,
java.util.List<CommandEnumData> enums)
protected void readEnums(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
java.util.List<java.lang.String> values,
java.util.List<CommandEnumData> enums)
protected void writeCommand(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
CommandData commandData,
java.util.List<CommandEnumData> enums,
java.util.List<CommandEnumData> softEnums,
java.util.List<java.lang.String> postFixes)
protected CommandData readCommand(io.netty.buffer.ByteBuf buffer, BedrockCodecHelper helper, java.util.List<CommandEnumData> enums, java.util.List<CommandEnumData> softEnums, java.util.List<java.lang.String> postfixes, java.util.Set<java.lang.Runnable> delayedTasks)
protected void writeFlags(io.netty.buffer.ByteBuf buffer,
java.util.Set<CommandData.Flag> flags)
protected java.util.Set<CommandData.Flag> readFlags(io.netty.buffer.ByteBuf buffer)
protected void writeParameter(io.netty.buffer.ByteBuf buffer,
BedrockCodecHelper helper,
CommandParamData param,
java.util.List<CommandEnumData> enums,
java.util.List<CommandEnumData> softEnums,
java.util.List<java.lang.String> postfixes)
protected CommandParamData readParameter(io.netty.buffer.ByteBuf buffer, BedrockCodecHelper helper, java.util.List<CommandEnumData> enums, java.util.List<CommandEnumData> softEnums, java.util.List<java.lang.String> postfixes, java.util.Set<java.lang.Runnable> delayedTasks)