Class ClientboundCommandsPacket.ArgumentNodeStub
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCommandsPacket.ArgumentNodeStub
- All Implemented Interfaces:
ClientboundCommandsPacket.NodeStub
- Enclosing class:
- ClientboundCommandsPacket
static class ClientboundCommandsPacket.ArgumentNodeStub
extends Object
implements ClientboundCommandsPacket.NodeStub
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ArgumentTypeInfo.Template<?>
private final String
private final ResourceLocation
-
Constructor Summary
ConstructorDescriptionArgumentNodeStub
(com.mojang.brigadier.tree.ArgumentCommandNode<SharedSuggestionProvider, ?> p_237648_) ArgumentNodeStub
(String p_237650_, ArgumentTypeInfo.Template<?> p_237651_, ResourceLocation p_237652_) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.builder.ArgumentBuilder<SharedSuggestionProvider,
?> build
(CommandBuildContext p_237656_) private static ResourceLocation
getSuggestionId
(com.mojang.brigadier.suggestion.SuggestionProvider<SharedSuggestionProvider> p_237654_) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidserializeCap
(FriendlyByteBuf p_237660_, ArgumentTypeInfo.Template<A> p_237661_) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,
T extends ArgumentTypeInfo.Template<A>>
voidserializeCap
(FriendlyByteBuf p_237663_, ArgumentTypeInfo<A, T> p_237664_, ArgumentTypeInfo.Template<A> p_237665_) void
write
(FriendlyByteBuf p_237658_)
-
Field Details
-
id
-
argumentType
-
suggestionId
-
-
Constructor Details
-
ArgumentNodeStub
ArgumentNodeStub(String p_237650_, ArgumentTypeInfo.Template<?> p_237651_, @Nullable ResourceLocation p_237652_) -
ArgumentNodeStub
public ArgumentNodeStub(com.mojang.brigadier.tree.ArgumentCommandNode<SharedSuggestionProvider, ?> p_237648_)
-
-
Method Details
-
getSuggestionId
@Nullable private static ResourceLocation getSuggestionId(@Nullable com.mojang.brigadier.suggestion.SuggestionProvider<SharedSuggestionProvider> p_237654_) -
build
public com.mojang.brigadier.builder.ArgumentBuilder<SharedSuggestionProvider,?> build(CommandBuildContext p_237656_) - Specified by:
build
in interfaceClientboundCommandsPacket.NodeStub
-
write
- Specified by:
write
in interfaceClientboundCommandsPacket.NodeStub
-
serializeCap
private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>> void serializeCap(FriendlyByteBuf p_237660_, ArgumentTypeInfo.Template<A> p_237661_) -
serializeCap
private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends ArgumentTypeInfo.Template<A>> void serializeCap(FriendlyByteBuf p_237663_, ArgumentTypeInfo<A, T> p_237664_, ArgumentTypeInfo.Template<A> p_237665_)
-