Class ClientboundCommandsPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCommandsPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte
private static final byte
private static final byte
private static final byte
private final com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider>
private static final byte
private static final byte
private static final byte
-
Constructor Summary
ConstructorDescriptionClientboundCommandsPacket
(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131861_) ClientboundCommandsPacket
(FriendlyByteBuf p_178805_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<SharedSuggestionProvider,
?> createBuilder
(FriendlyByteBuf p_131869_, byte p_131870_) private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>>
enumerateNodes
(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131863_) private static List<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>>
getNodesInIdOrder
(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_178807_) com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider>
getRoot()
void
handle
(ClientGamePacketListener p_131878_) private static ClientboundCommandsPacket.Entry
readNode
(FriendlyByteBuf p_131888_) private static void
resolveEntries
(List<ClientboundCommandsPacket.Entry> p_178813_) void
write
(FriendlyByteBuf p_131886_) private static void
writeNode
(FriendlyByteBuf p_131872_, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> p_131873_, Map<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>, Integer> p_131874_) 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.protocol.Packet
isSkippable
-
Field Details
-
MASK_TYPE
private static final byte MASK_TYPE- See Also:
-
FLAG_EXECUTABLE
private static final byte FLAG_EXECUTABLE- See Also:
-
FLAG_REDIRECT
private static final byte FLAG_REDIRECT- See Also:
-
FLAG_CUSTOM_SUGGESTIONS
private static final byte FLAG_CUSTOM_SUGGESTIONS- See Also:
-
TYPE_ROOT
private static final byte TYPE_ROOT- See Also:
-
TYPE_LITERAL
private static final byte TYPE_LITERAL- See Also:
-
TYPE_ARGUMENT
private static final byte TYPE_ARGUMENT- See Also:
-
root
-
-
Constructor Details
-
ClientboundCommandsPacket
public ClientboundCommandsPacket(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131861_) -
ClientboundCommandsPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
resolveEntries
-
enumerateNodes
private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> enumerateNodes(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131863_) -
getNodesInIdOrder
private static List<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> getNodesInIdOrder(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_178807_) -
readNode
-
createBuilder
@Nullable private static com.mojang.brigadier.builder.ArgumentBuilder<SharedSuggestionProvider,?> createBuilder(FriendlyByteBuf p_131869_, byte p_131870_) -
writeNode
private static void writeNode(FriendlyByteBuf p_131872_, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> p_131873_, Map<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>, Integer> p_131874_) -
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getRoot
-