Interface ITextureAtlasSpriteLoader
- All Known Implementing Classes:
CustomTASTest.TasLoader
public interface ITextureAtlasSpriteLoader
A loader for custom texture atlas sprites.
The loader can be specified in the corresponding .mcmeta file for a texture as follows:
{
"forge": {
"loader": "examplemod:example_tas_loader"
}
}
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionloadContents(ResourceLocation name, Resource resource, FrameSize frameSize, NativeImage image, AnimationMetadataSection animationMeta, ForgeTextureMetadata forgeMeta) @NotNull TextureAtlasSpritemakeSprite(ResourceLocation atlasName, SpriteContents contents, int atlasWidth, int atlasHeight, int spriteX, int spriteY, int mipmapLevel) Creates aTextureAtlasSpritefrom the givenSpriteContents.
-
Method Details
-
loadContents
SpriteContents loadContents(ResourceLocation name, Resource resource, FrameSize frameSize, NativeImage image, AnimationMetadataSection animationMeta, ForgeTextureMetadata forgeMeta) -
makeSprite
@NotNull @NotNull TextureAtlasSprite makeSprite(ResourceLocation atlasName, SpriteContents contents, int atlasWidth, int atlasHeight, int spriteX, int spriteY, int mipmapLevel) Creates aTextureAtlasSpritefrom the givenSpriteContents.
-