Class ResourceLocationArgument

java.lang.Object
com.zenith.command.brigadier.ResourceLocationArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.kyori.adventure.key.Key>, SerializableArgumentType<net.kyori.adventure.key.Key>

public class ResourceLocationArgument extends Object implements SerializableArgumentType<net.kyori.adventure.key.Key>
  • Field Details

    • INVALID_RESOURCE_LOCATION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_RESOURCE_LOCATION
  • Constructor Details

    • ResourceLocationArgument

      public ResourceLocationArgument()
  • Method Details

    • id

      public static ResourceLocationArgument id()
    • getId

      public static net.kyori.adventure.key.Key getId(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name)
    • parse

      public net.kyori.adventure.key.Key parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<net.kyori.adventure.key.Key>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • read

      public static net.kyori.adventure.key.Key read(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • commandParser

      public @NonNull CommandParser commandParser()
      Specified by:
      commandParser in interface SerializableArgumentType<net.kyori.adventure.key.Key>