Package net.minecraft.client.render
Class LightmapTextureManager
java.lang.Object
net.minecraft.client.render.LightmapTextureManager
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class LightmapTextureManager extends Object implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private boolean
dirty
private float
field_21528
private NativeImage
image
private GameRenderer
renderer
private NativeImageBackedTexture
texture
private Identifier
textureIdentifier
-
Constructor Summary
Constructors Constructor Description LightmapTextureManager(GameRenderer renderer, MinecraftClient client)
-
Method Summary
Modifier and Type Method Description void
close()
void
disable()
void
enable()
static int
getBlockLightCoordinates(int light)
private float
getBrightness(World world, int int2)
static int
getSkyLightCoordinates(int light)
private float
method_23795(float float2)
static int
pack(int block, int sky)
void
tick()
void
update(float delta)
-
Field Details
-
texture
-
image
-
textureIdentifier
-
dirty
private boolean dirty -
field_21528
private float field_21528 -
renderer
-
client
-
-
Constructor Details
-
LightmapTextureManager
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
tick
public void tick() -
disable
public void disable() -
enable
public void enable() -
update
public void update(float delta) -
method_23795
private float method_23795(float float2) -
getBrightness
-
pack
public static int pack(int block, int sky) -
getBlockLightCoordinates
public static int getBlockLightCoordinates(int light) -
getSkyLightCoordinates
public static int getSkyLightCoordinates(int light)
-