Class BlockModelRenderer.BrightnessCache
java.lang.Object
net.minecraft.client.render.block.BlockModelRenderer.BrightnessCache
- Enclosing class:
- BlockModelRenderer
@Environment(CLIENT) static class BlockModelRenderer.BrightnessCache extends Object
-
Field Summary
Fields Modifier and Type Field Description private booleanenabledprivate Long2FloatLinkedOpenHashMapfloatCacheprivate Long2IntLinkedOpenHashMapintCache -
Constructor Summary
Constructors Modifier Constructor Description privateBrightnessCache() -
Method Summary
Modifier and Type Method Description voiddisable()voidenable()floatgetFloat(BlockState state, BlockRenderView blockView, BlockPos pos)intgetInt(BlockState state, BlockRenderView blockRenderView, BlockPos pos)
-
Field Details
-
enabled
private boolean enabled -
intCache
-
floatCache
-
-
Constructor Details
-
BrightnessCache
private BrightnessCache()
-
-
Method Details
-
enable
public void enable() -
disable
public void disable() -
getInt
-
getFloat
-