CameraRenderState .java

net.minecraft.client.renderer.state.level.CameraRenderState (class): members: cameraEntityPartialTicks, viewRotationMatrix, entityRenderState, fogData.

net.minecraft.client.renderer.state.levelclass36 linesclient1.3 KB

Implements

API Surface (0)

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

Fields & Constants (19)

blockPos
pos
xRot
yRot
initialized
isPanoramicMode
isFrustumCaptured
isFirstPerson
smartCull
orientation
cameraEntityPartialTicks
cullFrustum
fogType
fogData
hudFov
depthFar
projectionMatrix
viewRotationMatrix
entityRenderState

Code Graph: Dependencies (6)

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

Full Source

CameraRenderState.java36 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.state.level;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.fabricmc.fabric.api.client.rendering.v1.FabricRenderState;
6
import net.minecraft.client.renderer.culling.Frustum;
7
import net.minecraft.client.renderer.fog.FogData;
8
import net.minecraft.core.BlockPos;
9
import net.minecraft.world.level.material.FogType;
10
import net.minecraft.world.phys.Vec3;
11
import org.joml.Matrix4f;
12
import org.joml.Quaternionf;
13
14
@Environment(EnvType.CLIENT)
15
public class CameraRenderState implements FabricRenderState {
16
	public BlockPos blockPos = BlockPos.ZERO;
17
	public Vec3 pos = new Vec3(0.0, 0.0, 0.0);
18
	public float xRot;
19
	public float yRot;
20
	public boolean initialized;
21
	public boolean isPanoramicMode;
22
	public boolean isFrustumCaptured;
23
	public boolean isFirstPerson;
24
	public boolean smartCull;
25
	public Quaternionf orientation = new Quaternionf();
26
	public float cameraEntityPartialTicks;
27
	public Frustum cullFrustum = new Frustum(new Matrix4f(), new Matrix4f());
28
	public FogType fogType = FogType.NONE;
29
	public FogData fogData = new FogData();
30
	public float hudFov;
31
	public float depthFar;
32
	public Matrix4f projectionMatrix = new Matrix4f();
33
	public Matrix4f viewRotationMatrix = new Matrix4f();
34
	public CameraEntityRenderState entityRenderState = new CameraEntityRenderState();
35
}
36

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