Class ResourceLocationArgument

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

public class ResourceLocationArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<net.kyori.adventure.key.Key>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.kyori.adventure.key.Key
    getId(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name)
     
    id()
     
    net.kyori.adventure.key.Key
    parse(com.mojang.brigadier.StringReader reader)
     
    static net.kyori.adventure.key.Key
    read(com.mojang.brigadier.StringReader reader)
     

    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

    getExamples, listSuggestions, parse
  • 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