Class VeilResourceManagerImpl

java.lang.Object
foundry.veil.impl.resource.VeilResourceManagerImpl
All Implemented Interfaces:
VeilResourceManager, AutoCloseable, org.lwjgl.system.NativeResource

@Internal public class VeilResourceManagerImpl extends Object implements VeilResourceManager, org.lwjgl.system.NativeResource
Manages all veil resources
  • Constructor Details

    • VeilResourceManagerImpl

      public VeilResourceManagerImpl()
  • Method Details

    • addVeilLoaders

      public void addVeilLoaders(VeilRenderer renderer)
    • addLoader

      public void addLoader(VeilResourceLoader loader)
      Adds a resource loader to the resource manager
    • createReloadListener

      public net.minecraft.server.packs.resources.PreparableReloadListener createReloadListener()
    • clientResources

      public net.minecraft.server.packs.resources.ResourceManager clientResources()
      Specified by:
      clientResources in interface VeilResourceManager
    • serverResources

      public net.minecraft.server.packs.resources.ResourceManager serverResources()
      Specified by:
      serverResources in interface VeilResourceManager
    • getVeilResource

      @Nullable public @Nullable VeilResource<?> getVeilResource(String namespace, String path)
      Specified by:
      getVeilResource in interface VeilResourceManager
    • free

      public void free()
      Specified by:
      free in interface org.lwjgl.system.NativeResource
    • getAllPacks

      public List<VeilPackResources> getAllPacks()
      Returns:
      All pack folders