Package net.minecraft.command.argument
Class ColorArgumentType
java.lang.Object
net.minecraft.command.argument.ColorArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Formatting>
public class ColorArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Formatting>
- Mappings:
Namespace Name official dt
intermediary net/minecraft/class_2177
named net/minecraft/command/argument/ColorArgumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorArgumentType
color()
static Formatting
getColor
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official b
Ldt;b:Ljava/util/Collection;
intermediary field_9839
Lnet/minecraft/class_2177;field_9839:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/ColorArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_COLOR_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COLOR_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Ldt;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9840
Lnet/minecraft/class_2177;field_9840:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named INVALID_COLOR_EXCEPTION
Lnet/minecraft/command/argument/ColorArgumentType;INVALID_COLOR_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
ColorArgumentType
private ColorArgumentType()
-
-
Method Details
-
color
- Mappings:
Namespace Name Mixin selector official a
Ldt;a()Ldt;
intermediary method_9276
Lnet/minecraft/class_2177;method_9276()Lnet/minecraft/class_2177;
named color
Lnet/minecraft/command/argument/ColorArgumentType;color()Lnet/minecraft/command/argument/ColorArgumentType;
-
getColor
public static Formatting getColor(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lm;
intermediary method_9277
Lnet/minecraft/class_2177;method_9277(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_124;
named getColor
Lnet/minecraft/command/argument/ColorArgumentType;getColor(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/Formatting;
-
parse
public Formatting parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Formatting>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldt;a(Lcom/mojang/brigadier/StringReader;)Lm;
intermediary method_9279
Lnet/minecraft/class_2177;method_9279(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_124;
named parse
Lnet/minecraft/command/argument/ColorArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Formatting;
-
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 interfacecom.mojang.brigadier.arguments.ArgumentType<Formatting>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Ldt;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2177;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named listSuggestions
Lnet/minecraft/command/argument/ColorArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Formatting>
-