Class ResourceLocationArgument

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

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

  • Constructor Details

    • ResourceLocationArgument

      public ResourceLocationArgument()
  • Method Details

    • id

      public static ResourceLocationArgument id()
    • getId

      public static ResourceLocation getId(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107012_, String p_107013_)
    • parse

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

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