类 RenderLevelStageEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderLevelStageEvent

public class RenderLevelStageEvent extends net.minecraftforge.eventbus.api.Event
Fires at various times during LevelRenderer.renderLevel. Check getStage() to render during the appropriate time for your use case.

This event is not cancellable, and does not have a result.

This event is fired on the main Forge event bus, only on the logical client.

  • 字段详细资料

    • stage

      private final RenderLevelStageEvent.Stage stage
    • levelRenderer

      private final LevelRenderer levelRenderer
    • poseStack

      private final PoseStack poseStack
    • projectionMatrix

      private final org.joml.Matrix4f projectionMatrix
    • renderTick

      private final int renderTick
    • partialTick

      private final float partialTick
    • camera

      private final Camera camera
    • frustum

      private final Frustum frustum
  • 构造器详细资料

  • 方法详细资料

    • getStage

      public RenderLevelStageEvent.Stage getStage()
      返回 the current stage that is being rendered. Check this before doing rendering to ensure that rendering happens at the appropriate time.。
      返回:
      the current stage that is being rendered. Check this before doing rendering to ensure that rendering happens at the appropriate time.
    • getLevelRenderer

      public LevelRenderer getLevelRenderer()
      返回 the level renderer。
      返回:
      the level renderer
    • getPoseStack

      public PoseStack getPoseStack()
      返回 the pose stack used for rendering。
      返回:
      the pose stack used for rendering
    • getProjectionMatrix

      public org.joml.Matrix4f getProjectionMatrix()
      返回 the projection matrix。
      返回:
      the projection matrix
    • getRenderTick

      public int getRenderTick()
      返回 the current "ticks" value in the level renderer
      返回:
      the current "ticks" value in the level renderer
    • getPartialTick

      public float getPartialTick()
      返回 the current partialTick value used for rendering。
      返回:
      the current partialTick value used for rendering
    • getCamera

      public Camera getCamera()
      返回 the camera。
      返回:
      the camera
    • getFrustum

      public Frustum getFrustum()
      返回 the frustum。
      返回:
      the frustum