Interface FabricSpriteAtlasTexture
public interface FabricSpriteAtlasTexture
Note: This interface is automatically implemented on
SpriteAtlasTexture
via Mixin and interface injection.-
Method Summary
Modifier and TypeMethodDescriptiondefault SpriteFinder
Retrieves 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 toSpriteAtlasTexture.upload(SpriteLoader.StitchResult)
, 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)
,FabricStitchResult.spriteFinder()
, orFabricAtlasPreparation.spriteFinder()
instead.- Returns:
- the sprite finder for this atlas
-