Interface LevelRenderContext

All Superinterfaces:
AbstractLevelRenderContext, LevelTerrainRenderContext

@NonExtendable public interface LevelRenderContext extends LevelTerrainRenderContext
  • Method Details

    • submitNodeCollector

      net.minecraft.client.renderer.SubmitNodeCollector submitNodeCollector()
    • poseStack

      com.mojang.blaze3d.vertex.PoseStack poseStack()
    • bufferSource

      net.minecraft.client.renderer.MultiBufferSource bufferSource()
      The MultiBufferSource instance being used by the level renderer for most non-terrain renders. Generally this will be better for most use cases because quads for the same layer can be buffered incrementally and then drawn all at once by the level renderer.

      IMPORTANT - all vertex coordinates sent to consumers should be relative to the camera to be consistent with other quads emitted by the level renderer and other mods. If this isn't possible, caller should use a separate "immediate" instance.

      Renders that cannot draw in one of the supported events must be drawn directly to the frame buffer, preferably in LevelRenderEvents.END_MAIN to avoid being overdrawn or cleared.