Class ClientboundCommandsPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCommandsPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<ClientboundCommandsPacket.Entry> private static final byte
private static final byte
private static final byte
private static final byte
private final int
static final StreamCodec
<FriendlyByteBuf, ClientboundCommandsPacket> private static final byte
private static final byte
private static final byte
-
Constructor Summary
ModifierConstructorDescriptionClientboundCommandsPacket
(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131861_) private
ClientboundCommandsPacket
(FriendlyByteBuf p_178805_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static List
<ClientboundCommandsPacket.Entry> createEntries
(it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_237627_) private 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_) 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_) void
handle
(ClientGamePacketListener p_131878_) private static ClientboundCommandsPacket.NodeStub
read
(FriendlyByteBuf p_237639_, byte p_237640_) private static ClientboundCommandsPacket.Entry
readNode
(FriendlyByteBuf p_131888_) type()
private static void
validateEntries
(List<ClientboundCommandsPacket.Entry> p_237629_) private static void
validateEntries
(List<ClientboundCommandsPacket.Entry> p_237631_, BiPredicate<ClientboundCommandsPacket.Entry, it.unimi.dsi.fastutil.ints.IntSet> p_237632_) private void
write
(FriendlyByteBuf p_131886_) 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, isTerminal
-
Field Details
-
STREAM_CODEC
-
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:
-
rootIndex
private final int rootIndex -
entries
-
-
Constructor Details
-
ClientboundCommandsPacket
public ClientboundCommandsPacket(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131861_) -
ClientboundCommandsPacket
-
-
Method Details
-
write
-
validateEntries
private static void validateEntries(List<ClientboundCommandsPacket.Entry> p_237631_, BiPredicate<ClientboundCommandsPacket.Entry, it.unimi.dsi.fastutil.ints.IntSet> p_237632_) -
validateEntries
-
enumerateNodes
private static it.unimi.dsi.fastutil.objects.Object2IntMap<com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> enumerateNodes(com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> p_131863_) -
createEntries
private 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_) -
createEntry
private 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_) -
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getRoot
public com.mojang.brigadier.tree.RootCommandNode<SharedSuggestionProvider> getRoot(CommandBuildContext p_237625_)
-