Interface AbstractWorldRenderContext
- All Known Subinterfaces:
WorldExtractionContext,WorldRenderContext,WorldTerrainRenderContext
@NonExtendable
public interface AbstractWorldRenderContext
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.GameRendererThe game renderer instance.net.minecraft.client.renderer.LevelRendererThe world renderer instance doing the rendering and invoking the event.net.minecraft.client.renderer.state.LevelRenderStateThe render state for the world being rendered.
-
Method Details
-
gameRenderer
net.minecraft.client.renderer.GameRenderer gameRenderer()The game renderer instance.- Returns:
- GameRenderer instance
-
worldRenderer
net.minecraft.client.renderer.LevelRenderer worldRenderer()The world renderer instance doing the rendering and invoking the event.- Returns:
- WorldRenderer instance invoking the event
-
worldState
net.minecraft.client.renderer.state.LevelRenderState worldState()The render state for the world being rendered.Render states contain information about the current frame used for rendering, and should be used instead of accessing the world or other objects directly from rendering events.
- Returns:
- WorldRenderState instance
-