Class RegistryUtils

java.lang.Object
io.github.thecsdev.tcdcommons.api.util.RegistryUtils

public final class RegistryUtils extends Object
Provides utility methods for working with Minecraft's registry system.
  • Method Details

    • registerCommandArgumentType

      public static final void registerCommandArgumentType(net.minecraft.util.Identifier id, Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argTypeSupplier) throws NullPointerException
      Registers a command ArgumentType.
      Parameters:
      id - The unique Identifier of the ArgumentType.
      argTypeSupplier - The ArgumentType Supplier.
      Throws:
      NullPointerException - When an argument is null, or the Supplier returns null.