MipmapStrategy .java

net.minecraft.client.renderer.texture.MipmapStrategy (enum): members: AUTO, MEAN, CUTOUT, STRICT_CUTOUT, DARK_CUTOUT, getSerializedName, name, CODEC.

net.minecraft.client.renderer.textureenum28 linesclient676 B

Implements

API Surface (1)

String getSerializedName()

Fields & Constants (2)

CODEC
name

String literals (5)

"auto"
"mean"
"cutout"
"strict_cutout"
"dark_cutout"

Code Graph: Dependencies (1)

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

Full Source

MipmapStrategy.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.texture;
2
3
import com.mojang.serialization.Codec;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.util.StringRepresentable;
7
8
@Environment(EnvType.CLIENT)
9
public enum MipmapStrategy implements StringRepresentable {
10
	AUTO("auto"),
11
	MEAN("mean"),
12
	CUTOUT("cutout"),
13
	STRICT_CUTOUT("strict_cutout"),
14
	DARK_CUTOUT("dark_cutout");
15
16
	public static final Codec<MipmapStrategy> CODEC = StringRepresentable.fromValues(MipmapStrategy::values);
17
	private final String name;
18
19
	MipmapStrategy(final String name) {
20
		this.name = name;
21
	}
22
23
	@Override
24
	public String getSerializedName() {
25
		return this.name;
26
	}
27
}
28

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