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 official fd
intermediary net/minecraft/class_9019
named net/minecraft/command/argument/StyleArgumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>
private final RegistryWrapper.WrapperLookup
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
StyleArgumentType
(RegistryWrapper.WrapperLookup wrapperLookup) -
Method Summary
Modifier and TypeMethodDescriptionstatic Style
getStyle
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String style) parse
(com.mojang.brigadier.StringReader stringReader) static StyleArgumentType
style
(CommandRegistryAccess commandRegistryAccess) 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
- Mappings:
Namespace Name Mixin selector official b
Lfd;b:Ljava/util/Collection;
intermediary field_47554
Lnet/minecraft/class_9019;field_47554:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/StyleArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_STYLE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_STYLE_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lfd;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_47553
Lnet/minecraft/class_9019;field_47553:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named INVALID_STYLE_EXCEPTION
Lnet/minecraft/command/argument/StyleArgumentType;INVALID_STYLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
field_48932
- Mappings:
Namespace Name Mixin selector official c
Lfd;c:Lin$a;
intermediary field_48932
Lnet/minecraft/class_9019;field_48932:Lnet/minecraft/class_7225$class_7874;
named field_48932
Lnet/minecraft/command/argument/StyleArgumentType;field_48932:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
-
-
Constructor Details
-
StyleArgumentType
-
-
Method Details
-
getStyle
public static Style getStyle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String style) - Mappings:
Namespace Name Mixin selector official a
Lfd;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lwp;
intermediary method_55448
Lnet/minecraft/class_9019;method_55448(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2583;
named getStyle
Lnet/minecraft/command/argument/StyleArgumentType;getStyle(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Style;
-
style
- Mappings:
Namespace Name Mixin selector official a
Lfd;a(Ldq;)Lfd;
intermediary method_55446
Lnet/minecraft/class_9019;method_55446(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9019;
named style
Lnet/minecraft/command/argument/StyleArgumentType;style(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/StyleArgumentType;
-
parse
public Style parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Style>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lfd;a(Lcom/mojang/brigadier/StringReader;)Lwp;
intermediary method_55447
Lnet/minecraft/class_9019;method_55447(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2583;
named parse
Lnet/minecraft/command/argument/StyleArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/text/Style;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Style>
-