Package net.minecraft.commands.arguments
Class StyleArgument
java.lang.Object
net.minecraft.commands.arguments.StyleArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Style>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Style
getStyle
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_311982_, String p_309702_) parse
(com.mojang.brigadier.StringReader p_311382_) static StyleArgument
style()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
ERROR_INVALID_JSON
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_JSON
-
-
Constructor Details
-
StyleArgument
private StyleArgument()
-
-
Method Details
-
getStyle
public static Style getStyle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_311982_, String p_309702_) -
style
-
parse
public Style parse(com.mojang.brigadier.StringReader p_311382_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Style>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Style>
-