static class BlockModelRenderer.Cache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap |
brightnessCache |
private boolean |
enabled |
private it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap |
packedLightCache |
Modifier | Constructor and Description |
---|---|
private |
Cache() |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
float |
getBrightness(BlockState blockStateIn,
ILightReader lightReaderIn,
BlockPos blockPosIn) |
int |
getPackedLight(BlockState blockStateIn,
ILightReader lightReaderIn,
BlockPos blockPosIn) |
private boolean enabled
private final it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap packedLightCache
private final it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap brightnessCache
public void enable()
public void disable()
public int getPackedLight(BlockState blockStateIn, ILightReader lightReaderIn, BlockPos blockPosIn)
public float getBrightness(BlockState blockStateIn, ILightReader lightReaderIn, BlockPos blockPosIn)