Class AtlasRegistry

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

public final class AtlasRegistry extends Object
A registry to add atlases to AtlasManager.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.Identifier
    generateTextureLocation(net.minecraft.resources.Identifier atlasId)
    Generates a texture id based on an atlas id.
    static List<net.minecraft.client.resources.model.sprite.AtlasManager.AtlasConfig>
    Get all registered atlases.
    static void
    register(net.minecraft.client.resources.model.sprite.AtlasManager.AtlasConfig config)
    Registers an atlas using an atlas config.

    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.client.resources.model.sprite.AtlasManager.AtlasConfig config)
      Registers an atlas using an atlas config.
      Parameters:
      config - The atlas config to register.
    • generateTextureLocation

      public static net.minecraft.resources.Identifier generateTextureLocation(net.minecraft.resources.Identifier atlasId)
      Generates a texture id based on an atlas id.
      Parameters:
      atlasId - The atlas id to generate a texture id for.
      Returns:
      The generated texture id.
    • getAtlases

      public static List<net.minecraft.client.resources.model.sprite.AtlasManager.AtlasConfig> getAtlases()
      Get all registered atlases.
      Returns:
      The currently registered atlases.