Class TextArgumentType

java.lang.Object
net.minecraft.command.argument.TextArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Text>

public class TextArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Text>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • INVALID_COMPONENT_EXCEPTION

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COMPONENT_EXCEPTION
  • Constructor Details

    • TextArgumentType

      private TextArgumentType()
  • Method Details

    • getTextArgument

      public static Text getTextArgument​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
    • text

      public static TextArgumentType text()
    • parse

      public Text parse​(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Text>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Text>