Class DataResourceCache

java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.ResourceCache
dev.lukebemish.dynamicassetgenerator.api.DataResourceCache

public class DataResourceCache extends ResourceCache
A ResourceCache meant to provide resources for data packs.
  • Constructor Details

    • DataResourceCache

      public DataResourceCache(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
    • tags

      public TagSupplier.TagBakery tags()
      Returns:
      a tool to easily add any number of tag entries to this cache