Package foundry.veil.api.event
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.
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
Modifier and TypeInterfaceDescriptionstatic enum
Stages for rendering specific render types. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 renderinglevelRenderer
- The level renderer instancebufferSource
- The buffer source instancematrixStack
- The current render transformationsfrustumMatrix
- The current state of view matrix transformationsprojectionMatrix
- The current projection matrix being used to renderrenderTick
- The current tick of renderingdeltaTracker
- The delta time tracker for renderingcamera
- The camera the level is rendered fromfrustum
- The view frustum instance
-