Class RegistryArgumentHelper

java.lang.Object
dev.upcraft.sparkweave.api.command.argument.RegistryArgumentHelper

public class RegistryArgumentHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> net.minecraft.core.Registry<T>
    getRegistry(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String name)
     
    static com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
     
    static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
    suggestRegistries(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryArgumentHelper

      public RegistryArgumentHelper()
  • Method Details

    • suggestRegistries

      public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestRegistries(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
    • registryArgument

      public static com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation> registryArgument()
    • 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