ChunkSectionLayerGroup .java

net.minecraft.client.renderer.chunk.ChunkSectionLayerGroup (enum, 28 lines): members: OPAQUE, TRANSLUCENT, layers, label. imports: EnvType.

net.minecraft.client.renderer.chunkenum28 linesclient649 B

API Surface (2)

String label()
ChunkSectionLayer[] layers()

Fields & Constants (2)

label
layers

Code Graph: Dependencies (1)

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

Full Source

ChunkSectionLayerGroup.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.chunk;
2
3
import java.util.Locale;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
7
@Environment(EnvType.CLIENT)
8
public enum ChunkSectionLayerGroup {
9
	OPAQUE(ChunkSectionLayer.SOLID, ChunkSectionLayer.CUTOUT),
10
	TRANSLUCENT(ChunkSectionLayer.TRANSLUCENT);
11
12
	private final String label;
13
	private final ChunkSectionLayer[] layers;
14
15
	ChunkSectionLayerGroup(final ChunkSectionLayer... layers) {
16
		this.layers = layers;
17
		this.label = this.toString().toLowerCase(Locale.ROOT);
18
	}
19
20
	public String label() {
21
		return this.label;
22
	}
23
24
	public ChunkSectionLayer[] layers() {
25
		return this.layers;
26
	}
27
}
28

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