Class ModelBlockRenderer.Cache
java.lang.Object
net.minecraft.client.renderer.block.ModelBlockRenderer.Cache
- Enclosing class:
- ModelBlockRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap
private it.unimi.dsi.fastutil.longs.Long2IntLinkedOpenHashMap
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
void
enable()
int
getLightColor(BlockState p_111222_, BlockAndTintGetter p_111223_, BlockPos p_111224_)
float
getShadeBrightness(BlockState p_111227_, BlockAndTintGetter p_111228_, BlockPos p_111229_)
-
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
-
getShadeBrightness
public float getShadeBrightness(BlockState p_111227_, BlockAndTintGetter p_111228_, BlockPos p_111229_)
-