类 TextArgumentType

  • 所有已实现的接口:
    com.mojang.brigadier.arguments.ArgumentType<Text>

    public class TextArgumentType
    extends Object
    implements com.mojang.brigadier.arguments.ArgumentType<Text>
    Mappings:
    Namespace Name
    official dl
    intermediary net/minecraft/class_2178
    named net/minecraft/command/argument/TextArgumentType
    • 字段详细资料

      • EXAMPLES

        private static final Collection<String> EXAMPLES
        Mappings:
        Namespace Name Mixin selector
        official b Ldl;b:Ljava/util/Collection;
        intermediary field_9841 Lnet/minecraft/class_2178;field_9841:Ljava/util/Collection;
        named EXAMPLES Lnet/minecraft/command/argument/TextArgumentType;EXAMPLES:Ljava/util/Collection;
      • INVALID_COMPONENT_EXCEPTION

        public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COMPONENT_EXCEPTION
        Mappings:
        Namespace Name Mixin selector
        official a Ldl;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
        intermediary field_9842 Lnet/minecraft/class_2178;field_9842:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
        named INVALID_COMPONENT_EXCEPTION Lnet/minecraft/command/argument/TextArgumentType;INVALID_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • 构造器详细资料

      • TextArgumentType

        private TextArgumentType()
    • 方法详细资料

      • getTextArgument

        public static Text getTextArgument​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                           String name)
        Mappings:
        Namespace Name Mixin selector
        official a Ldl;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lon;
        intermediary method_9280 Lnet/minecraft/class_2178;method_9280(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2561;
        named getTextArgument Lnet/minecraft/command/argument/TextArgumentType;getTextArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Text;
      • text

        public static TextArgumentType text()
        Mappings:
        Namespace Name Mixin selector
        official a Ldl;a()Ldl;
        intermediary method_9281 Lnet/minecraft/class_2178;method_9281()Lnet/minecraft/class_2178;
        named text Lnet/minecraft/command/argument/TextArgumentType;text()Lnet/minecraft/command/argument/TextArgumentType;
      • parse

        public Text parse​(com.mojang.brigadier.StringReader stringReader)
                   throws com.mojang.brigadier.exceptions.CommandSyntaxException
        指定者:
        parse 在接口中 com.mojang.brigadier.arguments.ArgumentType<Text>
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Ldl;a(Lcom/mojang/brigadier/StringReader;)Lon;
        intermediary method_9283 Lnet/minecraft/class_2178;method_9283(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2561;
        named parse Lnet/minecraft/command/argument/TextArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/text/Text;
      • getExamples

        public Collection<String> getExamples()
        指定者:
        getExamples 在接口中 com.mojang.brigadier.arguments.ArgumentType<Text>
        Mappings:
        Namespace Name Mixin selector
        official getExamples Ldl;getExamples()Ljava/util/Collection;
        intermediary getExamples Lnet/minecraft/class_2178;getExamples()Ljava/util/Collection;
        named getExamples Lnet/minecraft/command/argument/TextArgumentType;getExamples()Ljava/util/Collection;