public class SCommandListPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SCommandListPacket.Entry |
Modifier and Type | Field and Description |
---|---|
private com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> |
root |
Constructor and Description |
---|
SCommandListPacket() |
SCommandListPacket(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> rootIn) |
Modifier and Type | Method and Description |
---|---|
com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> |
getRoot() |
void |
processPacket(IClientPlayNetHandler handler) |
private com.mojang.brigadier.builder.ArgumentBuilder<ISuggestionProvider,?> |
readArgumentBuilder(PacketBuffer buf,
byte flags) |
private SCommandListPacket.Entry |
readEntry(PacketBuffer buf) |
void |
readPacketData(PacketBuffer buf) |
private void |
writeCommandNode(PacketBuffer buf,
com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> node,
java.util.Map<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>,java.lang.Integer> nodeIds) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> root
public SCommandListPacket()
public SCommandListPacket(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> rootIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
private SCommandListPacket.Entry readEntry(PacketBuffer buf)
@Nullable private com.mojang.brigadier.builder.ArgumentBuilder<ISuggestionProvider,?> readArgumentBuilder(PacketBuffer buf, byte flags)
private void writeCommandNode(PacketBuffer buf, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> node, java.util.Map<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>,java.lang.Integer> nodeIds)
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> getRoot()