Package net.minecraftforge.client.event
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.
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
Modifier and TypeFieldDescriptionprivate 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
ConstructorDescriptionRenderLevelLastEvent
(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 TypeMethodDescriptionDeprecated, 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
-
Field Details
-
levelRenderer
Deprecated, for removal: This API element is subject to removal in a future version. -
poseStack
Deprecated, for removal: This API element is subject to removal in a future version. -
partialTick
private final float partialTickDeprecated, for removal: This API element is subject to removal in a future version. -
projectionMatrix
private final org.joml.Matrix4f projectionMatrixDeprecated, for removal: This API element is subject to removal in a future version. -
startNanos
private final long startNanosDeprecated, 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
Deprecated, for removal: This API element is subject to removal in a future version.Returns the level renderer.- Returns:
- the level renderer
-
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
-
RenderLevelStageEvent
instead for more flexibility and improved compatibility with translucent objects. There is noRenderLevelStageEvent.Stage
that directly replaces this event, instead you must decide which Stage best fits your use case.