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 Link icon

    • EXAMPLES Link icon

      private static final Collection<String> EXAMPLES
    • ERROR_UNKNOWN_ADVANCEMENT Link icon

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ADVANCEMENT
    • ERROR_UNKNOWN_RECIPE Link icon

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_RECIPE
  • Constructor Details Link icon

    • ResourceLocationArgument Link icon

      public ResourceLocationArgument()
  • Method Details Link icon

    • id Link icon

      public static ResourceLocationArgument id()
    • getAdvancement Link icon

      public static AdvancementHolder getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106988_, String p_106989_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getRecipe Link icon

      public static RecipeHolder<?> getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106995_, String p_106996_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getId Link icon

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

      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 Link icon

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