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() |
private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> |
method_30944(com.mojang.brigadier.tree.RootCommandNode<CommandSource> rootCommandNode) |
private static com.mojang.brigadier.tree.CommandNode<CommandSource>[] |
method_30945(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> object2IntMap) |
private static void |
method_30946(CommandTreeS2CPacket.CommandNodeData[] commandNodeData) |
void |
read(PacketByteBuf buf) |
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> |
readArgumentBuilder(PacketByteBuf packetByteBuf,
byte byte2) |
private static CommandTreeS2CPacket.CommandNodeData |
readCommandNode(PacketByteBuf packetByteBuf) |
void |
write(PacketByteBuf buf) |
private static void |
writeNode(PacketByteBuf packetByteBuf,
com.mojang.brigadier.tree.CommandNode<CommandSource> commandNode,
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 static void method_30946(CommandTreeS2CPacket.CommandNodeData[] commandNodeData)
private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> method_30944(com.mojang.brigadier.tree.RootCommandNode<CommandSource> rootCommandNode)
private static com.mojang.brigadier.tree.CommandNode<CommandSource>[] method_30945(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> object2IntMap)
private static CommandTreeS2CPacket.CommandNodeData readCommandNode(PacketByteBuf packetByteBuf)
@Nullable private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> readArgumentBuilder(PacketByteBuf packetByteBuf, byte byte2)
private static void writeNode(PacketByteBuf packetByteBuf, com.mojang.brigadier.tree.CommandNode<CommandSource> commandNode, 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()