MapRenderState .java

net.minecraft.client.renderer.state.MapRenderState (class): members: MapDecorationRenderState, decorations, texture. imports: FabricRenderState, Component.

net.minecraft.client.renderer.stateclass28 linesclient936 B

Implements

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (2)

texture
decorations

Code Graph: Dependencies (3)

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

Full Source

MapRenderState.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.state;
2
3
import java.util.ArrayList;
4
import java.util.List;
5
import net.fabricmc.api.EnvType;
6
import net.fabricmc.api.Environment;
7
import net.fabricmc.fabric.api.client.rendering.v1.FabricRenderState;
8
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
9
import net.minecraft.network.chat.Component;
10
import net.minecraft.resources.Identifier;
11
import org.jspecify.annotations.Nullable;
12
13
@Environment(EnvType.CLIENT)
14
public class MapRenderState implements FabricRenderState {
15
	public @Nullable Identifier texture;
16
	public final List<MapRenderState.MapDecorationRenderState> decorations = new ArrayList<>();
17
18
	@Environment(EnvType.CLIENT)
19
	public static class MapDecorationRenderState implements FabricRenderState {
20
		public @Nullable TextureAtlasSprite atlasSprite;
21
		public byte x;
22
		public byte y;
23
		public byte rot;
24
		public boolean renderOnFrame;
25
		public @Nullable Component name;
26
	}
27
}
28

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