Package net.minecraft.client.renderer
Class BlockModelRenderer.Cache
java.lang.Object
net.minecraft.client.renderer.BlockModelRenderer.Cache
- Enclosing class:
- BlockModelRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap
private final it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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_)
-
Field Details
-
enabled
private boolean enabled -
colorCache
private final it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap colorCache -
brightnessCache
private final it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap brightnessCache
-
-
Constructor Details
-
Cache
private Cache()
-
-
Method Details
-
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_)
-