Class RegistryUtils
java.lang.Object
io.github.thecsdev.tcdcommons.api.util.RegistryUtils
Provides utility methods for working with Minecraft's registry system.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
registerCommandArgumentType
(net.minecraft.util.Identifier id, Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argTypeSupplier) Registers a commandArgumentType
.
-
Method Details
-
registerCommandArgumentType
public static final void registerCommandArgumentType(net.minecraft.util.Identifier id, Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argTypeSupplier) throws NullPointerException Registers a commandArgumentType
.- Parameters:
id
- The uniqueIdentifier
of theArgumentType
.argTypeSupplier
- TheArgumentType
Supplier
.- Throws:
NullPointerException
- When an argument isnull
, or theSupplier
returnsnull
.
-