Class ClientPauseChangeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPauseChangeEvent
Direct Known Subclasses:
ClientPauseChangeEvent.Post, ClientPauseChangeEvent.Pre

public abstract class ClientPauseChangeEvent extends net.minecraftforge.eventbus.api.Event
Fired when pause is about to change

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

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired when pause is already changed
    static class 
    Fired when pause is going to change

    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

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

    Constructors
    Constructor
    Description
    ClientPauseChangeEvent(boolean pause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns game is paused.

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

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

    • pause

      private final boolean pause
  • Constructor Details

    • ClientPauseChangeEvent

      public ClientPauseChangeEvent(boolean pause)
  • Method Details

    • isPaused

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