Class ClientPauseEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPauseEvent

public class ClientPauseEvent extends net.minecraftforge.eventbus.api.Event
Fired when Minecraft.pause value got updated by the Minecraft.runTick(...) on a single-player world

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.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
    ClientPauseEvent(boolean isPaused)
     
  • 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

    • paused

      private final boolean paused
  • Constructor Details

    • ClientPauseEvent

      public ClientPauseEvent(boolean isPaused)
  • Method Details

    • isPaused

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