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/StyleArgumentType
intermediary net/minecraft/class_9019
official ga
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/StyleArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_47554 Lnet/minecraft/class_9019;field_47554:Ljava/util/Collection;
      official b Lga;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_EXCEPTION Lnet/minecraft/command/argument/StyleArgumentType;INVALID_STYLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_47553 Lnet/minecraft/class_9019;field_47553:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official a Lga;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • registryLookup

      private final RegistryWrapper.WrapperLookup registryLookup
      Mappings:
      Namespace Name Mixin selector
      named registryLookup Lnet/minecraft/command/argument/StyleArgumentType;registryLookup:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
      intermediary field_48932 Lnet/minecraft/class_9019;field_48932:Lnet/minecraft/class_7225$class_7874;
      official c Lga;c:Ljk$a;
  • Constructor Details

    • StyleArgumentType

      private StyleArgumentType(RegistryWrapper.WrapperLookup registryLookup)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/StyleArgumentType;<init>(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary <init> Lnet/minecraft/class_9019;<init>(Lnet/minecraft/class_7225$class_7874;)V
      official <init> Lga;<init>(Ljk$a;)V
  • Method Details

    • getStyle

      public static Style getStyle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String style)
      Mappings:
      Namespace Name Mixin selector
      named getStyle Lnet/minecraft/command/argument/StyleArgumentType;getStyle(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Style;
      intermediary method_55448 Lnet/minecraft/class_9019;method_55448(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2583;
      official a Lga;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lym;
    • style

      public static StyleArgumentType style(CommandRegistryAccess registryAccess)
      Mappings:
      Namespace Name Mixin selector
      named style Lnet/minecraft/command/argument/StyleArgumentType;style(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/StyleArgumentType;
      intermediary method_55446 Lnet/minecraft/class_9019;method_55446(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9019;
      official a Lga;a(Lel;)Lga;
    • parse

      public Style parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Style>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/StyleArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/text/Style;
      intermediary method_55447 Lnet/minecraft/class_9019;method_55447(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2583;
      official a Lga;a(Lcom/mojang/brigadier/StringReader;)Lym;
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Style>