Class AssetResourceCache

java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.ResourceCache
dev.lukebemish.dynamicassetgenerator.api.client.AssetResourceCache

public class AssetResourceCache extends ResourceCache
A ResourceCache meant to provide resources for resource packs. Texture sources should only be used within a class extending this, to ensure that caching is respected.
  • Field Details

    • EMPTY_TEXTURE

      public static final net.minecraft.resources.ResourceLocation EMPTY_TEXTURE
      The location of an empty texture, which consists of a single transparent pixel.
  • Constructor Details

    • AssetResourceCache

      public AssetResourceCache(net.minecraft.resources.ResourceLocation name)
      Parameters:
      name - a unique identifier for this cache
  • Method Details

    • getPackType

      public @NonNull net.minecraft.server.packs.PackType getPackType()
      Specified by:
      getPackType in class ResourceCache
      Returns:
      the type of pack this cache will generate resources for