package net.minecraft.client.resources.model.sprite; import java.util.function.Function; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.renderer.rendertype.RenderType; import net.minecraft.resources.Identifier; @Environment(EnvType.CLIENT) public record SpriteId(Identifier atlasLocation, Identifier texture) { public RenderType renderType(final Function renderType) { return (RenderType)renderType.apply(this.atlasLocation); } }