public class LightTexture
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
private Minecraft |
client |
private DynamicTexture |
dynamicTexture |
private GameRenderer |
entityRenderer |
private NativeImage |
nativeImage |
private boolean |
needsUpdate |
private ResourceLocation |
resourceLocation |
private float |
torchFlicker |
Constructor and Description |
---|
LightTexture(GameRenderer entityRendererIn,
Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disableLightmap() |
void |
enableLightmap() |
static int |
getLightBlock(int packedLightIn) |
private float |
getLightBrightness(World worldIn,
int lightLevelIn) |
static int |
getLightSky(int packedLightIn) |
private float |
invGamma(float valueIn) |
static int |
packLight(int blockLightIn,
int skyLightIn) |
void |
tick() |
void |
updateLightmap(float partialTicks) |
private final DynamicTexture dynamicTexture
private final NativeImage nativeImage
private final ResourceLocation resourceLocation
private boolean needsUpdate
private float torchFlicker
private final GameRenderer entityRenderer
private final Minecraft client
public LightTexture(GameRenderer entityRendererIn, Minecraft mcIn)
public void close()
close
in interface java.lang.AutoCloseable
public void tick()
public void disableLightmap()
public void enableLightmap()
public void updateLightmap(float partialTicks)
private float invGamma(float valueIn)
private float getLightBrightness(World worldIn, int lightLevelIn)
public static int packLight(int blockLightIn, int skyLightIn)
public static int getLightBlock(int packedLightIn)
public static int getLightSky(int packedLightIn)