Class SpriteSourceRegistry
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.SpriteSourceRegistry
A registry for custom
SpriteSources. Registered types will be automatically available for use in atlas definition JSON files.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(net.minecraft.resources.Identifier id, com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.texture.atlas.SpriteSource> codec) Registers a newSpriteSourceby providing a codec for it.
-
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 newSpriteSourceby providing a codec for it.- Parameters:
id- the identifier of the sprite source typecodec- the codec for the sprite source type
-