Interface LevelTerrainRenderContext
- All Superinterfaces:
AbstractLevelRenderContext
- All Known Subinterfaces:
LevelRenderContext
-
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.client.renderer.chunk.ChunkSectionsToRenderThe render state for all chunk section to be rendered.Methods inherited from interface AbstractLevelRenderContext
gameRenderer, levelRenderer, levelState
-
Method Details
-
sectionsToRender
@Nullable net.minecraft.client.renderer.chunk.ChunkSectionsToRender sectionsToRender()The render state for all chunk section to be rendered.Render states contain information about the current frame used for rendering, and should be used instead of accessing the level or other objects directly from rendering events.
Note: This may be null for events that fire before terrain preparation (e.g., COLLECT_SUBMITS, BEFORE_GIZMOS).
- Returns:
- the chunk sections to render, or null if not yet prepared
-