Interface FabricSpriteProvider

All Superinterfaces:
net.minecraft.client.particle.SpriteSet

public interface FabricSpriteProvider extends net.minecraft.client.particle.SpriteSet
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 Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.texture.TextureAtlas
    Returns the entire particles texture atlas.
    List<net.minecraft.client.renderer.texture.TextureAtlasSprite>
    Gets the list of all sprites available for this particle to use.

    Methods inherited from interface net.minecraft.client.particle.SpriteSet

    first, get, get
  • Method Details

    • getAtlas

      net.minecraft.client.renderer.texture.TextureAtlas getAtlas()
      Returns the entire particles texture atlas.
    • getSprites

      List<net.minecraft.client.renderer.texture.TextureAtlasSprite> getSprites()
      Gets the list of all sprites available for this particle to use. This is defined in your resource pack.