Class ClientPauseChangeEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ClientPauseChangeEvent
Direct Known Subclasses:
ClientPauseChangeEvent.Post, ClientPauseChangeEvent.Pre

public abstract class ClientPauseChangeEvent extends net.neoforged.bus.api.Event
Fired when game pause state is about to change

These events are fired on the main Forge event bus, only on the logical client.

  • Field Details

    • pause

      private final boolean pause
  • Constructor Details

    • ClientPauseChangeEvent

      public ClientPauseChangeEvent(boolean pause)
  • Method Details

    • isPaused

      public boolean isPaused()

      On Pre it returns what is the upcoming pause state.

      Cancelling will not modify this value.

      On Post it returns the updated pause state

      Returns the pause state.