net.minecraft.command.argument

public class TextArgumentType

extends ParserBackedArgumentType<Text>

net.minecraft.commands.arguments.ComponentArgument
net.minecraft.class_2178
net.minecraft.command.argument.TextArgumentType

Field summary

Modifier and TypeField
private static final Collection<String>
EXAMPLES
field_9841
EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_COMPONENT
field_9842
INVALID_COMPONENT_EXCEPTION
private static final com.mojang.serialization.DynamicOps<NbtElement>
OPS
field_58143
OPS
private static final Parser<NbtElement>
TAG_PARSER
field_57829
PARSER

Constructor summary

ModifierConstructor
private (RegistryWrapper$WrapperLookup registries)

Method summary

Modifier and TypeMethod
public static Text
getRawComponent(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_67414(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Text
getResolvedComponent(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, Entity contentEntity)
method_67415(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_1297 arg2)
parseTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Entity sender)
public static Text
getResolvedComponent(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_67416(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
parseTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static TextArgumentType
textComponent(CommandBuildContext context)
method_9281(class_7157 arg0)
text(CommandRegistryAccess registryAccess)
public Collection<String>
getExamples()
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0)
method_9282(Object arg0)
method_9282(Object text)