Interface PostLevelRenderCallback

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 PostLevelRenderCallback
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final dev.upcraft.sparkweave.api.event.Event<PostLevelRenderCallback>
    Fired after Minecraft has rendered everything in the world, before it renders hands, HUDs and GUIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLevelRendered(com.mojang.blaze3d.vertex.PoseStack posingStack, org.joml.Matrix4f modelViewMat, org.joml.Matrix4f projectionMat, net.minecraft.client.Camera camera, float tickDelta)
     
  • Field Details

    • EVENT

      static final dev.upcraft.sparkweave.api.event.Event<PostLevelRenderCallback> EVENT
      Fired after Minecraft has rendered everything in the world, before it renders hands, HUDs and GUIs.
  • Method Details

    • onLevelRendered

      void onLevelRendered(com.mojang.blaze3d.vertex.PoseStack posingStack, org.joml.Matrix4f modelViewMat, org.joml.Matrix4f projectionMat, net.minecraft.client.Camera camera, float tickDelta)
      Parameters:
      posingStack - a blank PoseStack that can be used for rendering custom elements
      modelViewMat - the model-view matrix corresponding to the camera's perspective
      projectionMat - the base projection matrix for world rendering
      camera - the camera from which perspective the world is being rendered
      tickDelta - fraction of time between two consecutive ticks (before 0 and 1)