Package net.minecraftforge.client.event
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.
use ClientPauseChangeEvent.Post instead
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
Modifier and TypeFieldDescriptionprivate final boolean
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionClientPauseEvent
(boolean isPaused) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPaused()
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
-
Field Details
-
paused
private final boolean pausedDeprecated, 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
-