Class HexColorArgumentType

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

public class HexColorArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Integer>
Mappings:
Namespace Name
named net/minecraft/command/argument/HexColorArgumentType
intermediary net/minecraft/class_11199
official fb
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/HexColorArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_59770 Lnet/minecraft/class_11199;field_59770:Ljava/util/Collection;
      official b Lfb;b:Ljava/util/Collection;
    • INVALID_HEX_COLOR_EXCEPTION

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_HEX_COLOR_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INVALID_HEX_COLOR_EXCEPTION Lnet/minecraft/command/argument/HexColorArgumentType;INVALID_HEX_COLOR_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_59769 Lnet/minecraft/class_11199;field_59769:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official a Lfb;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • HexColorArgumentType

      private HexColorArgumentType()
  • Method Details

    • hexColor

      public static HexColorArgumentType hexColor()
      Mappings:
      Namespace Name Mixin selector
      named hexColor Lnet/minecraft/command/argument/HexColorArgumentType;hexColor()Lnet/minecraft/command/argument/HexColorArgumentType;
      intermediary method_70758 Lnet/minecraft/class_11199;method_70758()Lnet/minecraft/class_11199;
      official a Lfb;a()Lfb;
    • getArgbColor

      public static Integer getArgbColor(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String hex)
      Mappings:
      Namespace Name Mixin selector
      named getArgbColor Lnet/minecraft/command/argument/HexColorArgumentType;getArgbColor(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/Integer;
      intermediary method_70760 Lnet/minecraft/class_11199;method_70760(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/Integer;
      official a Lfb;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/Integer;
    • parse

      public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Integer>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/HexColorArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
      intermediary method_70759 Lnet/minecraft/class_11199;method_70759(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
      official a Lfb;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
    • method_73327

      private static int method_73327(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_73327 Lnet/minecraft/command/argument/HexColorArgumentType;method_73327(I)I
      intermediary method_73327 Lnet/minecraft/class_11199;method_73327(I)I
      official a Lfb;a(I)I
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<Integer>
      Mappings:
      Namespace Name Mixin selector
      named listSuggestions Lnet/minecraft/command/argument/HexColorArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_11199;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official listSuggestions Lfb;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

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