@Environment(value=CLIENT) public class OverlayTexture extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_UV |
private NativeImageBackedTexture |
texture |
Constructor and Description |
---|
OverlayTexture() |
Modifier and Type | Method and 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() |
public static final int DEFAULT_UV
private final NativeImageBackedTexture texture
public void close()
close
in interface AutoCloseable
public void setupOverlayColor()
public static int getU(float whiteOverlayProgress)
public static int getV(boolean hurt)
public static int packUv(int u, int v)
public static int getUv(float float2, boolean hurt)
public void teardownOverlayColor()