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()voidread(PacketByteBuf buf)private com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?>readArgumentBuilder(PacketByteBuf buf, byte byte2)private CommandTreeS2CPacket.CommandNodeDatareadCommandNode(PacketByteBuf buf)voidwrite(PacketByteBuf buf)private voidwriteNode(PacketByteBuf buf, com.mojang.brigadier.tree.CommandNode<CommandSource> node, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,Integer> map)
-
Field Details
-
Constructor Details
-
CommandTreeS2CPacket
public CommandTreeS2CPacket() -
CommandTreeS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
readCommandNode
-
readArgumentBuilder
@Nullable private com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> readArgumentBuilder(PacketByteBuf buf, byte byte2) -
writeNode
private void writeNode(PacketByteBuf buf, com.mojang.brigadier.tree.CommandNode<CommandSource> node, 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()
-