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, com.mojang.blaze3d.vertex.PoseStack poseStack, org.joml.Matrix4f projectionMatrix, int renderTick, float partialTicks, 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, com.mojang.blaze3d.vertex.PoseStack poseStack, org.joml.Matrix4f projectionMatrix, int renderTick, float partialTicks, 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
      poseStack - The current stack of matrix transformations
      projectionMatrix - The current projection matrix being used to render
      renderTick - The current tick of rendering
      partialTicks - The percentage from last tick to this tick
      camera - The camera the level is rendered from
      frustum - The view frustum instance