Class RegistryArgumentHelper
java.lang.Object
dev.upcraft.sparkweave.api.command.argument.RegistryArgumentHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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)
-
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
-