Package net.minecraft.client.render
Class OverlayTexture
java.lang.Object
net.minecraft.client.render.OverlayTexture
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class OverlayTexture extends Object implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_UV
private NativeImageBackedTexture
texture
-
Constructor Summary
Constructors Constructor Description OverlayTexture()
-
Method Summary
Modifier and Type Method Description void
close()
static int
getU(float whiteOverlayProgress)
static int
getUv(float float2, boolean hurt)
static int
getV(boolean hurt)
static int
packUv(int u, int v)
void
setupOverlayColor()
void
teardownOverlayColor()
-
Field Details
-
DEFAULT_UV
public static final int DEFAULT_UV -
texture
-
-
Constructor Details
-
OverlayTexture
public OverlayTexture()
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
setupOverlayColor
public void setupOverlayColor() -
getU
public static int getU(float whiteOverlayProgress) -
getV
public static int getV(boolean hurt) -
packUv
public static int packUv(int u, int v) -
getUv
public static int getUv(float float2, boolean hurt) -
teardownOverlayColor
public void teardownOverlayColor()
-