Package net.minecraft.client.renderer
Class BlockModelRenderer.Cache
- java.lang.Object
-
- net.minecraft.client.renderer.BlockModelRenderer.Cache
-
- Enclosing class:
- BlockModelRenderer
static class BlockModelRenderer.Cache extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap
brightnessCache
private it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap
colorCache
private boolean
enabled
-
Constructor Summary
Constructors Modifier Constructor Description private
Cache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable()
void
enable()
int
getLightColor(BlockState p_228810_1_, IBlockDisplayReader p_228810_2_, BlockPos p_228810_3_)
float
getShadeBrightness(BlockState p_228811_1_, IBlockDisplayReader p_228811_2_, BlockPos p_228811_3_)
-
-
-
Method Detail
-
enable
public void enable()
-
disable
public void disable()
-
getLightColor
public int getLightColor(BlockState p_228810_1_, IBlockDisplayReader p_228810_2_, BlockPos p_228810_3_)
-
getShadeBrightness
public float getShadeBrightness(BlockState p_228811_1_, IBlockDisplayReader p_228811_2_, BlockPos p_228811_3_)
-
-