Class VeilDynamicRegistry

java.lang.Object
foundry.veil.api.resource.VeilDynamicRegistry

public class VeilDynamicRegistry extends Object
Allows the creation of normal vanilla dynamic registries. They can be created client or server side depending on the use case.
  • Constructor Details

    • VeilDynamicRegistry

      public VeilDynamicRegistry()
  • Method Details

    • loadRegistries

      public static VeilDynamicRegistry.Data loadRegistries(net.minecraft.server.packs.resources.ResourceManager resourceManager, Collection<net.minecraft.resources.RegistryDataLoader.RegistryData<?>> registries)
      Loads the specified registries from the normal registry folder.
      Parameters:
      resourceManager - The manager for all resources
      registries - The registries to load
      Returns:
      All loaded registries and their errors
    • printErrors

      @Nullable public static @Nullable String printErrors(Map<net.minecraft.resources.ResourceKey<?>,Exception> errors)
      Prints all errors from loading registries into a string.
      Parameters:
      errors - The errors to print
      Returns:
      The errors or null if there were no errors
    • isLoading

      @Internal public static boolean isLoading()