Interface FabricSpriteAtlasTexture
public interface FabricSpriteAtlasTexture
Note: This interface is automatically implemented on
TextureAtlas via Mixin and interface injection.-
Method Summary
Modifier and TypeMethodDescriptiondefault SpriteFinderRetrieves the sprite finder for this atlas.
-
Method Details
-
spriteFinder
Retrieves the sprite finder for this atlas. The returned instance is only valid until the next call toTextureAtlas.upload(SpriteLoader.Preparations), and thus should not be persisted across resource reloads.This method should not be used during a resource reload as this atlas will only be populated with new sprites towards the end of the resource reload. In this case, use
FabricErrorCollectingSpriteGetter.spriteFinder(Identifier)orFabricStitchResult.spriteFinder()instead.- Returns:
- the sprite finder for this atlas
-