2025-11-24 22:52:51 +03:00

45 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer.chunk;
import com.mojang.blaze3d.pipeline.RenderPipeline;
import java.util.Locale;
import net.minecraft.client.renderer.RenderPipelines;
public enum ChunkSectionLayer {
SOLID(RenderPipelines.SOLID_TERRAIN, 0x400000, false),
CUTOUT(RenderPipelines.CUTOUT_TERRAIN, 0x400000, false),
TRANSLUCENT(RenderPipelines.TRANSLUCENT_TERRAIN, 786432, true),
TRIPWIRE(RenderPipelines.TRIPWIRE_TERRAIN, 1536, true);
private final RenderPipeline pipeline;
private final int bufferSize;
private final boolean sortOnUpload;
private final String label;
private ChunkSectionLayer(RenderPipeline pipeline, int bufferSize, boolean sortOnUpload) {
this.pipeline = pipeline;
this.bufferSize = bufferSize;
this.sortOnUpload = sortOnUpload;
this.label = this.toString().toLowerCase(Locale.ROOT);
}
public RenderPipeline pipeline() {
return this.pipeline;
}
public int bufferSize() {
return this.bufferSize;
}
public String label() {
return this.label;
}
public boolean sortOnUpload() {
return this.sortOnUpload;
}
}