Package net.minecraft.client.renderer
Class LightTexture
- java.lang.Object
-
- net.minecraft.client.renderer.LightTexture
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class LightTexture extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private floatblockLightRedFlickerprivate NativeImagelightPixelsprivate DynamicTexturelightTextureprivate ResourceLocationlightTextureLocationprivate Minecraftminecraftprivate GameRendererrendererprivate booleanupdateLightTexture
-
Constructor Summary
Constructors Constructor Description LightTexture(GameRenderer p_i225968_1_, Minecraft p_i225968_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intblock(int p_228450_0_)voidclose()private floatgetBrightness(World p_228452_1_, int p_228452_2_)private floatnotGamma(float p_228453_1_)static intpack(int p_228451_0_, int p_228451_1_)static intsky(int p_228454_0_)voidtick()voidturnOffLightLayer()voidturnOnLightLayer()voidupdateLightTexture(float p_205106_1_)
-
-
-
Field Detail
-
lightTexture
private final DynamicTexture lightTexture
-
lightPixels
private final NativeImage lightPixels
-
lightTextureLocation
private final ResourceLocation lightTextureLocation
-
updateLightTexture
private boolean updateLightTexture
-
blockLightRedFlicker
private float blockLightRedFlicker
-
renderer
private final GameRenderer renderer
-
minecraft
private final Minecraft minecraft
-
-
Constructor Detail
-
LightTexture
public LightTexture(GameRenderer p_i225968_1_, Minecraft p_i225968_2_)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
tick
public void tick()
-
turnOffLightLayer
public void turnOffLightLayer()
-
turnOnLightLayer
public void turnOnLightLayer()
-
updateLightTexture
public void updateLightTexture(float p_205106_1_)
-
notGamma
private float notGamma(float p_228453_1_)
-
getBrightness
private float getBrightness(World p_228452_1_, int p_228452_2_)
-
pack
public static int pack(int p_228451_0_, int p_228451_1_)
-
block
public static int block(int p_228450_0_)
-
sky
public static int sky(int p_228454_0_)
-
-