Class ClientPauseUpdatedEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ClientPauseUpdatedEvent

public class ClientPauseUpdatedEvent extends net.neoforged.bus.api.Event
Fired when the client is pause and no longer performing ticks.

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.

  • Nested Class Summary

    Nested classes/interfaces inherited from class net.neoforged.bus.api.Event

    net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClientPauseUpdatedEvent(boolean isPaused)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns game is paused.

    Methods inherited from class net.neoforged.bus.api.Event

    getResult, hasResult, setResult

    Methods inherited from class java.lang.Object

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

    • paused

      private final boolean paused
  • Constructor Details

    • ClientPauseUpdatedEvent

      public ClientPauseUpdatedEvent(boolean isPaused)
  • Method Details

    • isPaused

      public boolean isPaused()
      Returns game is paused.
      Returns:
      game is paused