Class AtlasSourceRegistry
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.AtlasSourceRegistry
A registry for custom
AtlasSource
s. Registered types will be automatically available for use in atlas definition JSON files.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
register
(Identifier id, com.mojang.serialization.MapCodec<? extends AtlasSource> codec) Registers a newAtlasSource
by providing a codec for it.
-
Method Details
-
register
public static void register(Identifier id, com.mojang.serialization.MapCodec<? extends AtlasSource> codec) Registers a newAtlasSource
by providing a codec for it.- Parameters:
id
- the identifier of the atlas source typecodec
- the codec for the atlas source type
-