@Environment(value=CLIENT) public class LightmapTextureManager extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private boolean |
dirty |
private float |
field_21528 |
private NativeImage |
image |
private GameRenderer |
renderer |
private NativeImageBackedTexture |
texture |
private Identifier |
textureIdentifier |
Constructor and Description |
---|
LightmapTextureManager(GameRenderer renderer,
MinecraftClient client) |
Modifier and Type | Method and 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) |
private final NativeImageBackedTexture texture
private final NativeImage image
private final Identifier textureIdentifier
private boolean dirty
private float field_21528
private final GameRenderer renderer
private final MinecraftClient client
public LightmapTextureManager(GameRenderer renderer, MinecraftClient client)
public void close()
close
in interface AutoCloseable
public void tick()
public void disable()
public void enable()
public void update(float delta)
private float method_23795(float float2)
private float getBrightness(World world, int int2)
public static int pack(int block, int sky)
public static int getBlockLightCoordinates(int light)
public static int getSkyLightCoordinates(int light)