OptionsRenderState .java

net.minecraft.client.renderer.state.OptionsRenderState (class): members: menuBackgroundBlurriness, chunkSectionFadeInTime, prioritizeChunkUpdates, bobView.

net.minecraft.client.renderer.stateclass39 linesclient1.4 KB

Implements

API Surface (1)

float getBackgroundOpacity(final float defaultOpacity)

Fields & Constants (21)

cloudRange
cutoutLeaves
improvedTransparency
ambientOcclusion
menuBackgroundBlurriness
panoramaSpeed
maxAnisotropyValue
textureFiltering
bobView
screenEffectScale
glintSpeed
glintStrength
damageTiltStrength
backgroundForChatOnly
textBackgroundOpacity
cloudStatus
cameraType
renderDistance
chunkSectionFadeInTime
prioritizeChunkUpdates
fov

Code Graph: Dependencies (4)

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

Full Source

OptionsRenderState.java39 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.state;
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.CameraType;
7
import net.minecraft.client.CloudStatus;
8
import net.minecraft.client.PrioritizeChunkUpdates;
9
import net.minecraft.client.TextureFilteringMethod;
10
11
@Environment(EnvType.CLIENT)
12
public class OptionsRenderState implements FabricRenderState {
13
	public int cloudRange;
14
	public boolean cutoutLeaves;
15
	public boolean improvedTransparency;
16
	public boolean ambientOcclusion;
17
	public int menuBackgroundBlurriness;
18
	public double panoramaSpeed;
19
	public int maxAnisotropyValue;
20
	public TextureFilteringMethod textureFiltering = TextureFilteringMethod.NONE;
21
	public boolean bobView;
22
	public float screenEffectScale;
23
	public double glintSpeed;
24
	public double glintStrength;
25
	public double damageTiltStrength;
26
	public boolean backgroundForChatOnly;
27
	public float textBackgroundOpacity;
28
	public CloudStatus cloudStatus = CloudStatus.OFF;
29
	public CameraType cameraType = CameraType.FIRST_PERSON;
30
	public int renderDistance;
31
	public double chunkSectionFadeInTime;
32
	public PrioritizeChunkUpdates prioritizeChunkUpdates;
33
	public int fov;
34
35
	public float getBackgroundOpacity(final float defaultOpacity) {
36
		return this.backgroundForChatOnly ? defaultOpacity : this.textBackgroundOpacity;
37
	}
38
}
39

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