Class StyleArgument

java.lang.Object
net.minecraft.commands.arguments.StyleArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Style>

public class StyleArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<Style>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_INVALID_JSON

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_JSON
    • registries

      private final HolderLookup.Provider registries
  • Constructor Details

  • Method Details

    • getStyle

      public static Style getStyle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_313889_, String p_313891_)
    • style

      public static StyleArgument style(CommandBuildContext p_324578_)
    • parse

      public Style parse(com.mojang.brigadier.StringReader p_313833_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Style>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

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