Interface FabricSpriteAtlasTexture


public interface FabricSpriteAtlasTexture
Note: This interface is automatically implemented on TextureAtlas via Mixin and interface injection.
  • Method Summary

    Modifier and Type
    Method
    Description
    default SpriteFinder
    Retrieves the sprite finder for this atlas.
  • Method Details

    • spriteFinder

      default SpriteFinder spriteFinder()
      Retrieves the sprite finder for this atlas. The returned instance is only valid until the next call to TextureAtlas.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) or FabricStitchResult.spriteFinder() instead.

      Returns:
      the sprite finder for this atlas