SpriteId .java

net.minecraft.client.resources.model.sprite.SpriteId (record): members: atlasLocation, texture, renderType. imports: RenderType, Identifier, EnvType.

net.minecraft.client.resources.model.spriterecord15 linesclient499 B

API Surface (2)

record SpriteId(Identifier atlasLocation, Identifier texture)
RenderType renderType(final Function<Identifier, RenderType> renderType)

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

SpriteId.java15 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.resources.model.sprite;
2
3
import java.util.function.Function;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.client.renderer.rendertype.RenderType;
7
import net.minecraft.resources.Identifier;
8
9
@Environment(EnvType.CLIENT)
10
public record SpriteId(Identifier atlasLocation, Identifier texture) {
11
	public RenderType renderType(final Function<Identifier, RenderType> renderType) {
12
		return renderType.apply(this.atlasLocation);
13
	}
14
}
15

Decompiled Minecraft 26.3 source of SpriteId (net/minecraft/client/resources/model/sprite/SpriteId.java) with Mojang official mappings, stored verbatim on the site.