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:
  • Field Details

  • Constructor Details

    • RenderFrameEvent

      protected RenderFrameEvent(DeltaTracker partialTick)
  • Method Details

    • getPartialTick

      public DeltaTracker 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