public class CommandTreeS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CommandTreeS2CPacket.CommandNodeData |
Modifier and Type | Field and Description |
---|---|
private com.mojang.brigadier.tree.RootCommandNode<CommandSource> |
commandTree |
Constructor and Description |
---|
CommandTreeS2CPacket() |
CommandTreeS2CPacket(com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
com.mojang.brigadier.tree.RootCommandNode<CommandSource> |
getCommandTree() |
void |
read(PacketByteBuf buf) |
private com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> |
readArgumentBuilder(PacketByteBuf buf,
byte byte2) |
private CommandTreeS2CPacket.CommandNodeData |
readCommandNode(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
private void |
writeNode(PacketByteBuf buf,
com.mojang.brigadier.tree.CommandNode<CommandSource> node,
Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,Integer> map) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree
public CommandTreeS2CPacket()
public CommandTreeS2CPacket(com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
private CommandTreeS2CPacket.CommandNodeData readCommandNode(PacketByteBuf buf)
@Nullable private com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> readArgumentBuilder(PacketByteBuf buf, byte byte2)
private void writeNode(PacketByteBuf buf, com.mojang.brigadier.tree.CommandNode<CommandSource> node, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,Integer> map)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public com.mojang.brigadier.tree.RootCommandNode<CommandSource> getCommandTree()