Package net.minecraft.command.argument
Class StyleArgumentType
java.lang.Object
net.minecraft.command.argument.StyleArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Style>
public class StyleArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Style>
- Mappings:
Namespace Name named net/minecraft/command/argument/StyleArgumentTypeintermediary net/minecraft/class_9019official ge
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate final RegistryWrapper.WrapperLookup -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStyleArgumentType(RegistryWrapper.WrapperLookup registryLookup) -
Method Summary
Modifier and TypeMethodDescriptionstatic StylegetStyle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String style) parse(com.mojang.brigadier.StringReader stringReader) static StyleArgumentTypestyle(CommandRegistryAccess registryAccess) Methods 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
listSuggestions
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/StyleArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_47554Lnet/minecraft/class_9019;field_47554:Ljava/util/Collection;official bLge;b:Ljava/util/Collection;
-
INVALID_STYLE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_STYLE_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_STYLE_EXCEPTIONLnet/minecraft/command/argument/StyleArgumentType;INVALID_STYLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_47553Lnet/minecraft/class_9019;field_47553:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;official aLge;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
registryLookup
- Mappings:
Namespace Name Mixin selector named registryLookupLnet/minecraft/command/argument/StyleArgumentType;registryLookup:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;intermediary field_48932Lnet/minecraft/class_9019;field_48932:Lnet/minecraft/class_7225$class_7874;official cLge;c:Ljo$a;
-
-
Constructor Details
-
StyleArgumentType
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/argument/StyleArgumentType;<init>(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary <init>Lnet/minecraft/class_9019;<init>(Lnet/minecraft/class_7225$class_7874;)Vofficial <init>Lge;<init>(Ljo$a;)V
-
-
Method Details
-
getStyle
public static Style getStyle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String style) - Mappings:
Namespace Name Mixin selector named getStyleLnet/minecraft/command/argument/StyleArgumentType;getStyle(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Style;intermediary method_55448Lnet/minecraft/class_9019;method_55448(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2583;official aLge;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lxw;
-
style
- Mappings:
Namespace Name Mixin selector named styleLnet/minecraft/command/argument/StyleArgumentType;style(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/StyleArgumentType;intermediary method_55446Lnet/minecraft/class_9019;method_55446(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9019;official aLge;a(Lep;)Lge;
-
parse
public Style parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Style>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/StyleArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/text/Style;intermediary method_55447Lnet/minecraft/class_9019;method_55447(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2583;official aLge;a(Lcom/mojang/brigadier/StringReader;)Lxw;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Style>
-