Interface FabricSpriteProvider

All Superinterfaces:
SpriteProvider

public interface FabricSpriteProvider extends SpriteProvider
FabricSpriteProvider. It does the same thing as vanilla's SpriteProvider, but in a way that's accessible to mods, and that exposes the atlas as well.

Custom sprites registered using ParticleFactoryRegistry have the options to supply a particle factory which will receive an instance of this interface containing the sprites set loaded for their particle from the active resource packs.

See Also:
  • Method Details

    • getAtlas

      SpriteAtlasTexture getAtlas()
      Returns the entire particles texture atlas.
    • getSprites

      List<Sprite> getSprites()
      Gets the list of all sprites available for this particle to use. This is defined in your resource pack.