Package net.minecraft.command.argument
Class TextArgumentType
java.lang.Object
net.minecraft.command.argument.ParserBackedArgumentType<Text>
net.minecraft.command.argument.TextArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Text>
- Mappings:
Namespace Name named net/minecraft/command/argument/TextArgumentTypeintermediary net/minecraft/class_2178official et
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.serialization.DynamicOps<NbtElement> private static final Parser<NbtElement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextgetTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static TextparseTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static TextparseTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, @Nullable Entity sender) static TextArgumentTypetext(CommandRegistryAccess registryAccess) Methods inherited from class net.minecraft.command.argument.ParserBackedArgumentType
listSuggestions, parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/TextArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_9841Lnet/minecraft/class_2178;field_9841:Ljava/util/Collection;official bLet;b:Ljava/util/Collection;
-
INVALID_COMPONENT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COMPONENT_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_COMPONENT_EXCEPTIONLnet/minecraft/command/argument/TextArgumentType;INVALID_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_9842Lnet/minecraft/class_2178;field_9842:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;official aLet;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
OPS
- Mappings:
Namespace Name Mixin selector named OPSLnet/minecraft/command/argument/TextArgumentType;OPS:Lcom/mojang/serialization/DynamicOps;intermediary field_58143Lnet/minecraft/class_2178;field_58143:Lcom/mojang/serialization/DynamicOps;official cLet;c:Lcom/mojang/serialization/DynamicOps;
-
PARSER
- Mappings:
Namespace Name Mixin selector named PARSERLnet/minecraft/command/argument/TextArgumentType;PARSER:Lnet/minecraft/util/packrat/Parser;intermediary field_57829Lnet/minecraft/class_2178;field_57829:Lnet/minecraft/class_10846;official dLet;d:Lbqp;
-
-
Constructor Details
-
TextArgumentType
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/argument/TextArgumentType;<init>(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary <init>Lnet/minecraft/class_2178;<init>(Lnet/minecraft/class_7225$class_7874;)Vofficial <init>Let;<init>(Lji$a;)V
-
-
Method Details
-
getTextArgument
public static Text getTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector named getTextArgumentLnet/minecraft/command/argument/TextArgumentType;getTextArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Text;intermediary method_67414Lnet/minecraft/class_2178;method_67414(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2561;official aLet;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lxg;
-
parseTextArgument
public static Text parseTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, @Nullable @Nullable Entity sender) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseTextArgumentLnet/minecraft/command/argument/TextArgumentType;parseTextArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/entity/Entity;)Lnet/minecraft/text/Text;intermediary method_67415Lnet/minecraft/class_2178;method_67415(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_1297;)Lnet/minecraft/class_2561;official aLet;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lbxe;)Lxg;
-
parseTextArgument
public static Text parseTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseTextArgumentLnet/minecraft/command/argument/TextArgumentType;parseTextArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Text;intermediary method_67416Lnet/minecraft/class_2178;method_67416(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2561;official bLet;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lxg;
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/command/argument/TextArgumentType;text(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/TextArgumentType;intermediary method_9281Lnet/minecraft/class_2178;method_9281(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2178;official aLet;a(Leg;)Let;
-
getExamples
-