Class ClientPauseEvent

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

@Deprecated(forRemoval=true, since="1.20.4") public class ClientPauseEvent extends net.minecraftforge.eventbus.api.Event
Deprecated, for removal: This API element is subject to removal in a future version.
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.

See Also:
  • 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
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClientPauseEvent(boolean isPaused)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    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
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ClientPauseEvent

      public ClientPauseEvent(boolean isPaused)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isPaused

      public boolean isPaused()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns game is paused.
      Returns:
      game is paused