GuiBookModelRenderState .java

net.minecraft.client.renderer.state.gui.pip.GuiBookModelRenderState (record): members: bookModel, texture, open, flip, x0, y0, x1, y1, scale, scissorArea.

net.minecraft.client.renderer.state.gui.piprecord39 linesclient1.0 KB

Implements

API Surface (0)

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

Fields & Constants (9)

bookModel
texture
open
flip
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

GuiBookModelRenderState.java39 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.object.book.BookModel;
7
import net.minecraft.resources.Identifier;
8
import org.jspecify.annotations.Nullable;
9
10
@Environment(EnvType.CLIENT)
11
public record GuiBookModelRenderState(
12
	BookModel bookModel,
13
	Identifier texture,
14
	float open,
15
	float flip,
16
	int x0,
17
	int y0,
18
	int x1,
19
	int y1,
20
	float scale,
21
	@Nullable ScreenRectangle scissorArea,
22
	@Nullable ScreenRectangle bounds
23
) implements PictureInPictureRenderState {
24
	public GuiBookModelRenderState(
25
		final BookModel bookModel,
26
		final Identifier texture,
27
		final float open,
28
		final float flip,
29
		final int x0,
30
		final int y0,
31
		final int x1,
32
		final int y1,
33
		final float scale,
34
		final @Nullable ScreenRectangle scissorArea
35
	) {
36
		this(bookModel, texture, open, flip, x0, y0, x1, y1, scale, scissorArea, PictureInPictureRenderState.getBounds(x0, y0, x1, y1, scissorArea));
37
	}
38
}
39

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