Interface ITextureAtlasSpriteLoader
- All Known Implementing Classes:
CustomTASTest.TasLoader
public interface ITextureAtlasSpriteLoader
A loader for custom TextureAtlasSprite implementations.
The loader can be specified in the corresponding .mcmeta file for a texture as follows:
The loader can be specified in the corresponding .mcmeta file for a texture as follows:
{ "forge": { "loader": "examplemod:example_tas_loader" } }
-
Method Summary
Modifier and TypeMethodDescriptionload(TextureAtlas atlas, ResourceManager resourceManager, TextureAtlasSprite.Info textureInfo, Resource resource, int atlasWidth, int atlasHeight, int spriteX, int spriteY, int mipmapLevel, NativeImage image)
Load a TextureAtlasSprite for the given resource.
-
Method Details
-
load
@Nonnull TextureAtlasSprite load(TextureAtlas atlas, ResourceManager resourceManager, TextureAtlasSprite.Info textureInfo, Resource resource, int atlasWidth, int atlasHeight, int spriteX, int spriteY, int mipmapLevel, NativeImage image)Load a TextureAtlasSprite for the given resource.
-