AbstractBlockRenderContextAddition

Per-block cache of renderActive on Sodium's block render context.

Sodium reuses one context per builder thread and keeps the state of the block being rendered on it, so the module state is resolved once per block and every face decision of that block reads a plain field instead of walking the thread's scoped bindings. Reads outside such a block — and any path that never resolves the cache — fall back to renderActive.

Inheritors

Functions

Link copied to clipboard
abstract fun liquidBounce$setXRayActive(@Nullable active: @Nullable Boolean)
Cached value for the block being rendered, or null to leave the block scope.
Link copied to clipboard