public class LightTexture
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
private float |
blockLightRedFlicker |
private NativeImage |
lightPixels |
private DynamicTexture |
lightTexture |
private ResourceLocation |
lightTextureLocation |
private Minecraft |
minecraft |
private GameRenderer |
renderer |
private boolean |
updateLightTexture |
Constructor and Description |
---|
LightTexture(GameRenderer p_i225968_1_,
Minecraft p_i225968_2_) |
Modifier and Type | Method and Description |
---|---|
static int |
block(int p_228450_0_) |
void |
close() |
private float |
getBrightness(World p_228452_1_,
int p_228452_2_) |
private float |
notGamma(float p_228453_1_) |
static int |
pack(int p_228451_0_,
int p_228451_1_) |
static int |
sky(int p_228454_0_) |
void |
tick() |
void |
turnOffLightLayer() |
void |
turnOnLightLayer() |
void |
updateLightTexture(float p_205106_1_) |
private final DynamicTexture lightTexture
private final NativeImage lightPixels
private final ResourceLocation lightTextureLocation
private boolean updateLightTexture
private float blockLightRedFlicker
private final GameRenderer renderer
private final Minecraft minecraft
public LightTexture(GameRenderer p_i225968_1_, Minecraft p_i225968_2_)
public void close()
close
in interface java.lang.AutoCloseable
public void tick()
public void turnOffLightLayer()
public void turnOnLightLayer()
public void updateLightTexture(float p_205106_1_)
private float notGamma(float p_228453_1_)
private float getBrightness(World p_228452_1_, int p_228452_2_)
public static int pack(int p_228451_0_, int p_228451_1_)
public static int block(int p_228450_0_)
public static int sky(int p_228454_0_)