Class AtlasSourceRegistry

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

public final class AtlasSourceRegistry extends Object
A registry for custom AtlasSources. Registered types will be automatically available for use in atlas definition JSON files.
  • Method Details Link icon

    • register Link icon

      public static void register(Identifier id, com.mojang.serialization.MapCodec<? extends AtlasSource> codec)
      Registers a new AtlasSource by providing a codec for it.
      Parameters:
      id - the identifier of the atlas source type
      codec - the codec for the atlas source type