@Environment(value=CLIENT) static class BlockModelRenderer.BrightnessCache extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap |
floatCache |
private it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap |
intCache |
Modifier | Constructor and Description |
---|---|
private |
BrightnessCache() |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
float |
getFloat(BlockState state,
BlockRenderView blockView,
BlockPos pos) |
int |
getInt(BlockState state,
BlockRenderView blockRenderView,
BlockPos pos) |
private boolean enabled
private final it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap intCache
private final it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap floatCache
public void enable()
public void disable()
public int getInt(BlockState state, BlockRenderView blockRenderView, BlockPos pos)
public float getFloat(BlockState state, BlockRenderView blockView, BlockPos pos)