Interface VeilRenderLevelStageEvent

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface VeilRenderLevelStageEvent
Fired for each render stage to draw arbitrarily to the screen. This is available as a last-resort if VeilRegisterFixedBuffersEvent doesn't fit the use case.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Stages for rendering specific render types.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRenderLevelStage(VeilRenderLevelStageEvent.Stage stage, net.minecraft.client.renderer.LevelRenderer levelRenderer, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, MatrixStack matrixStack, org.joml.Matrix4fc frustumMatrix, org.joml.Matrix4fc projectionMatrix, int renderTick, net.minecraft.client.DeltaTracker deltaTracker, net.minecraft.client.Camera camera, net.minecraft.client.renderer.culling.Frustum frustum)
    Called when the specified level stage is rendered.
  • Method Details

    • onRenderLevelStage

      void onRenderLevelStage(VeilRenderLevelStageEvent.Stage stage, net.minecraft.client.renderer.LevelRenderer levelRenderer, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, MatrixStack matrixStack, org.joml.Matrix4fc frustumMatrix, org.joml.Matrix4fc projectionMatrix, int renderTick, net.minecraft.client.DeltaTracker deltaTracker, net.minecraft.client.Camera camera, net.minecraft.client.renderer.culling.Frustum frustum)
      Called when the specified level stage is rendered. This functions the same as Forge.
      Parameters:
      stage - The stage rendering
      levelRenderer - The level renderer instance
      bufferSource - The buffer source instance
      matrixStack - The current render transformations
      frustumMatrix - The current state of view matrix transformations
      projectionMatrix - The current projection matrix being used to render
      renderTick - The current tick of rendering
      deltaTracker - The delta time tracker for rendering
      camera - The camera the level is rendered from
      frustum - The view frustum instance