Class TeamColorArgument

java.lang.Object
net.minecraft.commands.arguments.TeamColorArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<TeamColor>

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

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_INVALID_VALUE

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

    • TeamColorArgument

      private TeamColorArgument()
  • Method Details

    • teamColor

      public static TeamColorArgument teamColor()
    • getTeamColor

      public static TeamColor getTeamColor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
    • parse

      public TeamColor parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<TeamColor>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> contextBuilder, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<TeamColor>
    • getExamples

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