Class SCommandListPacket
java.lang.Object
net.minecraft.network.play.server.SCommandListPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider>
-
Constructor Summary
ConstructorDescriptionSCommandListPacket
(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> p_i47940_1_) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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_, Map<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>, 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 Details
-
root
-
-
Constructor Details
-
SCommandListPacket
public SCommandListPacket() -
SCommandListPacket
public SCommandListPacket(com.mojang.brigadier.tree.RootCommandNode<ISuggestionProvider> p_i47940_1_)
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
resolveEntries
-
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
-
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_, Map<com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>, Integer> p_197696_2_) -
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getRoot
-