GuiSkinRenderState .java

net.minecraft.client.renderer.state.gui.pip.GuiSkinRenderState (record): members: playerModel, texture, rotationX, rotationY, pivotY, x0, y0, x1, y1.

net.minecraft.client.renderer.state.gui.piprecord43 linesclient1.1 KB

Implements

API Surface (0)

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

Fields & Constants (10)

playerModel
texture
rotationX
rotationY
pivotY
x0
y0
x1
y1
scale

Code Graph: Dependencies (4)

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

Full Source

GuiSkinRenderState.java43 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.state.gui.pip;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.client.gui.navigation.ScreenRectangle;
6
import net.minecraft.client.model.Model;
7
import net.minecraft.resources.Identifier;
8
import org.jspecify.annotations.Nullable;
9
10
@Environment(EnvType.CLIENT)
11
public record GuiSkinRenderState(
12
	Model.Simple playerModel,
13
	Identifier texture,
14
	float rotationX,
15
	float rotationY,
16
	float pivotY,
17
	int x0,
18
	int y0,
19
	int x1,
20
	int y1,
21
	float scale,
22
	@Nullable ScreenRectangle scissorArea,
23
	@Nullable ScreenRectangle bounds
24
) implements PictureInPictureRenderState {
25
	public GuiSkinRenderState(
26
		final Model.Simple playerModel,
27
		final Identifier texture,
28
		final float rotationX,
29
		final float rotationY,
30
		final float pivotY,
31
		final int x0,
32
		final int y0,
33
		final int x1,
34
		final int y1,
35
		final float scale,
36
		final @Nullable ScreenRectangle scissorArea
37
	) {
38
		this(
39
			playerModel, texture, rotationX, rotationY, pivotY, x0, y0, x1, y1, scale, scissorArea, PictureInPictureRenderState.getBounds(x0, y0, x1, y1, scissorArea)
40
		);
41
	}
42
}
43

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