Class CommandTreeS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.CommandTreeS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class CommandTreeS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classCommandTreeS2CPacket.CommandNodeData -
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.tree.RootCommandNode<CommandSource>commandTree -
Constructor Summary
Constructors Constructor Description CommandTreeS2CPacket()CommandTreeS2CPacket(com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)com.mojang.brigadier.tree.RootCommandNode<CommandSource>getCommandTree()private static 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(Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> object2IntMap)private static voidmethod_30946(CommandTreeS2CPacket.CommandNodeData[] commandNodeData)voidread(PacketByteBuf buf)private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?>readArgumentBuilder(PacketByteBuf packetByteBuf, byte byte2)private static CommandTreeS2CPacket.CommandNodeDatareadCommandNode(PacketByteBuf packetByteBuf)voidwrite(PacketByteBuf buf)private static voidwriteNode(PacketByteBuf packetByteBuf, com.mojang.brigadier.tree.CommandNode<CommandSource> commandNode, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,Integer> map)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
commandTree
-
-
Constructor Details
-
CommandTreeS2CPacket
public CommandTreeS2CPacket() -
CommandTreeS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
method_30946
-
method_30944
private static Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> method_30944(com.mojang.brigadier.tree.RootCommandNode<CommandSource> rootCommandNode) -
method_30945
private static com.mojang.brigadier.tree.CommandNode<CommandSource>[] method_30945(Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> object2IntMap) -
readCommandNode
-
readArgumentBuilder
@Nullable private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> readArgumentBuilder(PacketByteBuf packetByteBuf, byte byte2) -
writeNode
private static void writeNode(PacketByteBuf packetByteBuf, com.mojang.brigadier.tree.CommandNode<CommandSource> commandNode, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,Integer> map) -
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getCommandTree
@Environment(CLIENT) public com.mojang.brigadier.tree.RootCommandNode<CommandSource> getCommandTree()
-