FabricSpriteProvider

public interface FabricSpriteProvider implements 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 recieve an instance of this interface containing the sprites set loaded for their particle from the active resourcepacks.

See also

Functions

getAtlas
Link copied to clipboard
abstract SpriteAtlasTexture getAtlas()
Returns the entire particles texture atlas.
getSprite
Link copied to clipboard
abstract Sprite getSprite(int i, int j)
getSprites
Link copied to clipboard
abstract List<SpritegetSprites()
Gets the list of all sprites available for this particle to use.This is defined in your resourcepack.

Inheritors

FabricSpriteProviderImpl
Link copied to clipboard

Sources

jvm source
Link copied to clipboard