Class HexColorArgument
java.lang.Object
net.minecraft.commands.arguments.HexColorArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Integer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intduplicateDigit(int digit) static IntegergetHexColor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static HexColorArgumenthexColor()<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> contextBuilder, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_INVALID_HEX
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_HEX
-
-
Constructor Details
-
HexColorArgument
private HexColorArgument()
-
-
Method Details
-
hexColor
-
getHexColor
public static Integer getHexColor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
parse
-
duplicateDigit
private static int duplicateDigit(int digit) -
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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-