Class SCommandListPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SCommandListPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SCommandListPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SCommandListPacket.Entry
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider>
root
-
Constructor Summary
Constructors Constructor Description SCommandListPacket()
SCommandListPacket(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> p_i47940_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static com.mojang.brigadier.builder.ArgumentBuilder<ISuggestionProvider,?>
createBuilder(PacketBuffer p_197695_0_, byte p_197695_1_)
private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>>
enumerateNodes(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> p_244292_0_)
private static com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>[]
getNodesInIdOrder(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> p_244293_0_)
com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider>
getRoot()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
private static SCommandListPacket.Entry
readNode(PacketBuffer p_197692_0_)
private static void
resolveEntries(SCommandListPacket.Entry[] p_244294_0_)
void
write(PacketBuffer p_148840_1_)
private static void
writeNode(PacketBuffer p_197696_0_, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> p_197696_1_, java.util.Map<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>,java.lang.Integer> p_197696_2_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
-
-
-
Field Detail
-
root
private com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> root
-
-
Constructor Detail
-
SCommandListPacket
public SCommandListPacket()
-
SCommandListPacket
public SCommandListPacket(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> p_i47940_1_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
resolveEntries
private static void resolveEntries(SCommandListPacket.Entry[] p_244294_0_)
-
enumerateNodes
private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> enumerateNodes(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> p_244292_0_)
-
getNodesInIdOrder
private static com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>[] getNodesInIdOrder(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> p_244293_0_)
-
readNode
private static SCommandListPacket.Entry readNode(PacketBuffer p_197692_0_)
-
createBuilder
@Nullable private static com.mojang.brigadier.builder.ArgumentBuilder<ISuggestionProvider,?> createBuilder(PacketBuffer p_197695_0_, byte p_197695_1_)
-
writeNode
private static void writeNode(PacketBuffer p_197696_0_, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> p_197696_1_, java.util.Map<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>,java.lang.Integer> p_197696_2_)
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getRoot
public com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> getRoot()
-
-