Package net.minecraft.commands.arguments
Class StyleArgument
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ParserBasedArgument<Style>
net.minecraft.commands.arguments.StyleArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Style>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> private static final com.mojang.serialization.DynamicOps<Tag> private static final CommandArgumentParser<Tag> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StylegetStyle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static StyleArgumentstyle(CommandBuildContext pContext) Methods inherited from class net.minecraft.util.parsing.packrat.commands.ParserBasedArgument
listSuggestions, parseMethods inherited from class java.lang.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_STYLE
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_STYLE -
OPS
-
TAG_PARSER
-
-
Constructor Details
-
StyleArgument
-
-
Method Details
-
getStyle
public static Style getStyle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
style
-
getExamples
-