Interface AbstractWorldRenderContext

All Known Subinterfaces:
WorldExtractionContext, WorldRenderContext, WorldTerrainRenderContext

@NonExtendable public interface AbstractWorldRenderContext
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.GameRenderer
    The game renderer instance.
    net.minecraft.client.renderer.LevelRenderer
    The world renderer instance doing the rendering and invoking the event.
    net.minecraft.client.renderer.state.LevelRenderState
    The 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