Package net.minecraft.client.texture
Class MipmapHelper
java.lang.Object
net.minecraft.client.texture.MipmapHelper
@Environment(CLIENT) public class MipmapHelper extends Object
-
Field Summary
Fields Modifier and Type Field Description private static float[]
COLOR_FRACTIONS
-
Constructor Summary
Constructors Constructor Description MipmapHelper()
-
Method Summary
Modifier and Type Method Description private static int
blend(int one, int two, int three, int four, boolean checkAlpha)
private static int
getColorComponent(int one, int two, int three, int four, int bits)
private static float
getColorFraction(int value)
static NativeImage[]
getMipmapLevelsImages(NativeImage image, int mipmap)
-
Field Details
-
COLOR_FRACTIONS
private static final float[] COLOR_FRACTIONS
-
-
Constructor Details
-
MipmapHelper
public MipmapHelper()
-
-
Method Details
-
getMipmapLevelsImages
-
blend
private static int blend(int one, int two, int three, int four, boolean checkAlpha) -
getColorComponent
private static int getColorComponent(int one, int two, int three, int four, int bits) -
getColorFraction
private static float getColorFraction(int value)
-