Class RenderFrameEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderFrameEvent
- Direct Known Subclasses:
RenderFrameEvent.Post
,RenderFrameEvent.Pre
public abstract class RenderFrameEvent
extends net.neoforged.bus.api.Event
Base class of the two render frame events.
These events can be used to setup and teardown global render state that must persist for the current frame.
For the event that fires once per client tick (instead of per frame), see ClientTickEvent
.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
RenderFrameEvent.Post
is fired once per frame, after the current frame is rendered viainvalid reference
GameRenderer#render(float, long, boolean)
static class
RenderFrameEvent.Pre
is fired once per frame, before the current frame is rendered viainvalid reference
GameRenderer#render(float, long, boolean)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current partial tick, which is either the true partial tick or the pause partial tick, depending on if the game is paused.
-
Field Details
-
partialTick
-
-
Constructor Details
-
RenderFrameEvent
-
-
Method Details
-
getPartialTick
Returns the current partial tick, which is either the true partial tick or the pause partial tick, depending on if the game is paused.- Returns:
- the current partial tick, which is either the true partial tick or the pause partial tick, depending on if the game is paused
-