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