Class AssetResourceCache
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.ResourceCache
dev.lukebemish.dynamicassetgenerator.api.client.AssetResourceCache
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationThe location of an empty texture, which consists of a single transparent pixel.Fields inherited from class dev.lukebemish.dynamicassetgenerator.api.ResourceCache
cache -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.lukebemish.dynamicassetgenerator.api.ResourceCache
allowAccess, getDependencies, getName, getResources, makeContext, planResetListener, planSource, planSource, planSource, planSource, planSource, register, register, reset
-
Field Details
-
EMPTY_TEXTURE
public static final net.minecraft.resources.ResourceLocation EMPTY_TEXTUREThe 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:
getPackTypein classResourceCache- Returns:
- the type of pack this cache will generate resources for
-