PictureInPictureRenderState .java

net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState (interface): members: IDENTITY_POSE, getBounds, scissorArea, x1, y1, x0, y0, pose.

net.minecraft.client.renderer.state.gui.pipinterface43 linesclientextends ScreenArea1.3 KB

API Surface (0)

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

Fields & Constants (2)

IDENTITY_POSE
pose

Code Graph: Dependencies (2)

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

Full Source

PictureInPictureRenderState.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.renderer.state.gui.ScreenArea;
7
import org.joml.Matrix3x2f;
8
import org.joml.Matrix3x2fc;
9
import org.jspecify.annotations.Nullable;
10
11
@Environment(EnvType.CLIENT)
12
public interface PictureInPictureRenderState extends ScreenArea {
13
	Matrix3x2fc IDENTITY_POSE = new Matrix3x2f();
14
15
	int x0();
16
17
	int x1();
18
19
	int y0();
20
21
	int y1();
22
23
	float scale();
24
25
	default Matrix3x2fc pose() {
26
		return IDENTITY_POSE;
27
	}
28
29
	@Nullable ScreenRectangle scissorArea();
30
31
	static @Nullable ScreenRectangle getBounds(final int x0, final int y0, final int x1, final int y1, final @Nullable ScreenRectangle scissorArea) {
32
		ScreenRectangle bounds = new ScreenRectangle(x0, y0, x1 - x0, y1 - y0);
33
		return scissorArea != null ? scissorArea.intersection(bounds) : bounds;
34
	}
35
36
	static @Nullable ScreenRectangle getBounds(
37
		final int x0, final int y0, final int x1, final int y1, final Matrix3x2fc pose, final @Nullable ScreenRectangle scissorArea
38
	) {
39
		ScreenRectangle bounds = new ScreenRectangle(x0, y0, x1 - x0, y1 - y0).transformMaxBounds(pose);
40
		return scissorArea != null ? scissorArea.intersection(bounds) : bounds;
41
	}
42
}
43

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