Class RegistryArgumentType

java.lang.Object
dev.upcraft.sparkweave.api.command.argument.RegistryArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>

public class RegistryArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
  • Constructor Details

    • RegistryArgumentType

      public RegistryArgumentType()
  • Method Details

    • registry

      public static RegistryArgumentType registry()
    • getRegistry

      public static <T> net.minecraft.core.Registry<T> getRegistry(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parse

      public net.minecraft.resources.ResourceLocation parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
    • getExamples

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