SpecialModelRenderers .java

net.minecraft.client.renderer.special.SpecialModelRenderers (class, 37 lines): members: ID_MAPPER, bootstrap, CODEC. strings: "end_cube", "player_head".

net.minecraft.client.renderer.specialclass37 linesclient2.2 KB

API Surface (1)

void bootstrap()

Fields & Constants (2)

ID_MAPPER
CODEC

String literals (13)

"bell"
"banner"
"book"
"conduit"
"chest"
"copper_golem_statue"
"head"
"player_head"
"shulker_box"
"shield"
"trident"
"decorated_pot"
"end_cube"

Code Graph: Dependencies (3)

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

Full Source

SpecialModelRenderers.java37 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.special;
2
3
import com.mojang.serialization.Codec;
4
import com.mojang.serialization.MapCodec;
5
import net.fabricmc.api.EnvType;
6
import net.fabricmc.api.Environment;
7
import net.minecraft.resources.Identifier;
8
import net.minecraft.util.ExtraCodecs.LateBoundIdMapper;
9
10
/**
11
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
12
 */
13
@Environment(EnvType.CLIENT)
14
public class SpecialModelRenderers {
15
	/**
16
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
17
	 */
18
	public static final LateBoundIdMapper<Identifier, MapCodec<? extends SpecialModelRenderer.Unbaked<?>>> ID_MAPPER = new LateBoundIdMapper<>();
19
	public static final Codec<SpecialModelRenderer.Unbaked<?>> CODEC = ID_MAPPER.codec(Identifier.CODEC).dispatch(SpecialModelRenderer.Unbaked::type, c -> c);
20
21
	public static void bootstrap() {
22
		ID_MAPPER.put(Identifier.withDefaultNamespace("bell"), BellSpecialRenderer.Unbaked.MAP_CODEC);
23
		ID_MAPPER.put(Identifier.withDefaultNamespace("banner"), BannerSpecialRenderer.Unbaked.MAP_CODEC);
24
		ID_MAPPER.put(Identifier.withDefaultNamespace("book"), BookSpecialRenderer.Unbaked.MAP_CODEC);
25
		ID_MAPPER.put(Identifier.withDefaultNamespace("conduit"), ConduitSpecialRenderer.Unbaked.MAP_CODEC);
26
		ID_MAPPER.put(Identifier.withDefaultNamespace("chest"), ChestSpecialRenderer.Unbaked.MAP_CODEC);
27
		ID_MAPPER.put(Identifier.withDefaultNamespace("copper_golem_statue"), CopperGolemStatueSpecialRenderer.Unbaked.MAP_CODEC);
28
		ID_MAPPER.put(Identifier.withDefaultNamespace("head"), SkullSpecialRenderer.Unbaked.MAP_CODEC);
29
		ID_MAPPER.put(Identifier.withDefaultNamespace("player_head"), PlayerHeadSpecialRenderer.Unbaked.MAP_CODEC);
30
		ID_MAPPER.put(Identifier.withDefaultNamespace("shulker_box"), ShulkerBoxSpecialRenderer.Unbaked.MAP_CODEC);
31
		ID_MAPPER.put(Identifier.withDefaultNamespace("shield"), ShieldSpecialRenderer.Unbaked.MAP_CODEC);
32
		ID_MAPPER.put(Identifier.withDefaultNamespace("trident"), TridentSpecialRenderer.Unbaked.MAP_CODEC);
33
		ID_MAPPER.put(Identifier.withDefaultNamespace("decorated_pot"), DecoratedPotSpecialRenderer.Unbaked.MAP_CODEC);
34
		ID_MAPPER.put(Identifier.withDefaultNamespace("end_cube"), EndCubeSpecialRenderer.Unbaked.MAP_CODEC);
35
	}
36
}
37

Decompiled Minecraft 26.3 source of SpecialModelRenderers (net/minecraft/client/renderer/special/SpecialModelRenderers.java) with Mojang official mappings, stored verbatim on the site.