Implements PictureInPictureRenderState
Code Graph: Dependencies (3) Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.
Full Source
GuiProfilerChartRenderState.java 32 lines · Minecraft 26.3 · verbatim Copy
1 package net.minecraft.client.renderer.state.gui.pip;
2
3 import java.util.List;
4 import net.fabricmc.api.EnvType;
5 import net.fabricmc.api.Environment;
6 import net.minecraft.client.gui.navigation.ScreenRectangle;
7 import net.minecraft.util.profiling.ResultField;
8 import org.joml.Matrix3x2fc;
9 import org.jspecify.annotations.Nullable;
10
11 @Environment(EnvType.CLIENT)
12 public record GuiProfilerChartRenderState(
13 Matrix3x2fc pose, List<ResultField> chartData, int x0, int y0, int x1, int y1, @Nullable ScreenRectangle scissorArea, @Nullable ScreenRectangle bounds
14 ) implements PictureInPictureRenderState {
15 public GuiProfilerChartRenderState(
16 final Matrix3x2fc pose,
17 final List<ResultField> chartData,
18 final int x0,
19 final int y0,
20 final int x1,
21 final int y1,
22 final @Nullable ScreenRectangle scissorArea
23 ) {
24 this(pose, chartData, x0, y0, x1, y1, scissorArea, PictureInPictureRenderState.getBounds(x0, y0, x1, y1, pose, scissorArea));
25 }
26
27 @Override
28 public float scale() {
29 return 1.0F;
30 }
31 }
32
Decompiled Minecraft 26.3 source of GuiProfilerChartRenderState (net/minecraft/client/renderer/state/gui/pip/GuiProfilerChartRenderState.java) with Mojang official mappings, stored verbatim on the site.