Class SpriteSourceRegistry

java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.SpriteSourceRegistry

public final class SpriteSourceRegistry extends Object
A registry for custom SpriteSources. Registered types will be automatically available for use in atlas definition JSON files.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    register(net.minecraft.resources.Identifier id, com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.texture.atlas.SpriteSource> codec)
    Registers a new SpriteSource by providing a codec for it.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • register

      public static void register(net.minecraft.resources.Identifier id, com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.texture.atlas.SpriteSource> codec)
      Registers a new SpriteSource by providing a codec for it.
      Parameters:
      id - the identifier of the sprite source type
      codec - the codec for the sprite source type