Class RenderLevelLastEvent

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

@Deprecated(forRemoval=true, since="1.19") public class RenderLevelLastEvent extends net.minecraftforge.eventbus.api.Event
Deprecated, for removal: This API element is subject to removal in a future version.
Use RenderLevelStageEvent instead for more flexibility and improved compatibility with translucent objects. There is no RenderLevelStageEvent.Stage that directly replaces this event, instead you must decide which Stage best fits your use case.
Fired after all level rendering. This can be used for custom rendering outside of e.g. a block entity or entity renderer.

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.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final LevelRenderer
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final float
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final PoseStack
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final org.joml.Matrix4f
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenderLevelLastEvent(LevelRenderer levelRenderer, PoseStack poseStack, float partialTick, org.joml.Matrix4f projectionMatrix, long startNanos)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the level renderer.
    float
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the partial tick.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the pose stack used for rendering.
    org.joml.Matrix4f
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the projection matrix.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the time when rendering started, in nanoseconds.

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • levelRenderer

      private final LevelRenderer levelRenderer
      Deprecated, for removal: This API element is subject to removal in a future version.
    • poseStack

      private final PoseStack poseStack
      Deprecated, for removal: This API element is subject to removal in a future version.
    • partialTick

      private final float partialTick
      Deprecated, for removal: This API element is subject to removal in a future version.
    • projectionMatrix

      private final org.joml.Matrix4f projectionMatrix
      Deprecated, for removal: This API element is subject to removal in a future version.
    • startNanos

      private final long startNanos
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • RenderLevelLastEvent

      @Internal public RenderLevelLastEvent(LevelRenderer levelRenderer, PoseStack poseStack, float partialTick, org.joml.Matrix4f projectionMatrix, long startNanos)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getLevelRenderer

      public LevelRenderer getLevelRenderer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the level renderer.
      Returns:
      the level renderer
    • getPoseStack

      public PoseStack getPoseStack()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the pose stack used for rendering.
      Returns:
      the pose stack used for rendering
    • getPartialTick

      public float getPartialTick()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the partial tick.
      Returns:
      the partial tick
    • getProjectionMatrix

      public org.joml.Matrix4f getProjectionMatrix()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the projection matrix.
      Returns:
      the projection matrix
    • getStartNanos

      public long getStartNanos()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the time when rendering started, in nanoseconds.
      Returns:
      the time when rendering started, in nanoseconds