Class ClientboundCommandsPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCommandsPacket
- All Implemented Interfaces:
- Packet<ClientGamePacketListener>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static class(package private) static interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<ClientboundCommandsPacket.Entry>private static final byteprivate static final byteprivate static final byteprivate static final byteprivate final intprivate static final byteprivate static final byteprivate static final byte
- 
Constructor SummaryConstructorsConstructorDescriptionClientboundCommandsPacket(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131861_) ClientboundCommandsPacket(FriendlyByteBuf p_178805_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static List<ClientboundCommandsPacket.Entry>createEntries(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_237627_) private static ClientboundCommandsPacket.EntrycreateEntry(com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> p_237622_, it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_237623_) private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>>enumerateNodes(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131863_) com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider>getRoot(CommandBuildContext p_237625_) voidhandle(ClientGamePacketListener p_131878_) private static ClientboundCommandsPacket.NodeStubread(FriendlyByteBuf p_237639_, byte p_237640_) private static ClientboundCommandsPacket.EntryreadNode(FriendlyByteBuf p_131888_) private static voidvalidateEntries(List<ClientboundCommandsPacket.Entry> p_237629_) private static voidvalidateEntries(List<ClientboundCommandsPacket.Entry> p_237631_, BiPredicate<ClientboundCommandsPacket.Entry, it.unimi.dsi.fastutil.ints.IntSet> p_237632_) voidwrite(FriendlyByteBuf p_131886_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
MASK_TYPEprivate static final byte MASK_TYPE- See Also:
 
- 
FLAG_EXECUTABLEprivate static final byte FLAG_EXECUTABLE- See Also:
 
- 
FLAG_REDIRECTprivate static final byte FLAG_REDIRECT- See Also:
 
- 
FLAG_CUSTOM_SUGGESTIONSprivate static final byte FLAG_CUSTOM_SUGGESTIONS- See Also:
 
- 
TYPE_ROOTprivate static final byte TYPE_ROOT- See Also:
 
- 
TYPE_LITERALprivate static final byte TYPE_LITERAL- See Also:
 
- 
TYPE_ARGUMENTprivate static final byte TYPE_ARGUMENT- See Also:
 
- 
rootIndexprivate final int rootIndex
- 
entries
 
- 
- 
Constructor Details- 
ClientboundCommandsPacketpublic ClientboundCommandsPacket(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131861_) 
- 
ClientboundCommandsPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
validateEntriesprivate static void validateEntries(List<ClientboundCommandsPacket.Entry> p_237631_, BiPredicate<ClientboundCommandsPacket.Entry, it.unimi.dsi.fastutil.ints.IntSet> p_237632_) 
- 
validateEntries
- 
enumerateNodesprivate static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> enumerateNodes(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131863_) 
- 
createEntriesprivate static List<ClientboundCommandsPacket.Entry> createEntries(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_237627_) 
- 
readNode
- 
read@Nullable private static ClientboundCommandsPacket.NodeStub read(FriendlyByteBuf p_237639_, byte p_237640_) 
- 
createEntryprivate static ClientboundCommandsPacket.Entry createEntry(com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> p_237622_, it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_237623_) 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
getRootpublic com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> getRoot(CommandBuildContext p_237625_) 
 
-