Class CalculatePlayerTurnEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.CalculatePlayerTurnEvent
public class CalculatePlayerTurnEvent
extends net.neoforged.bus.api.Event
Fired in
when retrieving the values of mouse sensitivity and cinematic camera, prior to running calculations on these values.
invalid reference
MouseHandler#turnPlayer()
This event is not cancellable, and does not
.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private double
-
Constructor Summary
ConstructorDescriptionCalculatePlayerTurnEvent
(double mouseSensitivity, boolean cinematicCameraEnabled) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the raw cinematic camera valuedouble
Returns the raw mouse sensitivity valuevoid
setCinematicCameraEnabled
(boolean cinematicCameraEnabled) Sets the cinematic camera value.void
setMouseSensitivity
(double mouseSensitivity) Sets the mouse sensitivity value.
-
Field Details
-
mouseSensitivity
private double mouseSensitivity -
cinematicCameraEnabled
private boolean cinematicCameraEnabled
-
-
Constructor Details
-
CalculatePlayerTurnEvent
@Internal public CalculatePlayerTurnEvent(double mouseSensitivity, boolean cinematicCameraEnabled)
-
-
Method Details
-
getMouseSensitivity
public double getMouseSensitivity()Returns the raw mouse sensitivity value -
setMouseSensitivity
public void setMouseSensitivity(double mouseSensitivity) Sets the mouse sensitivity value.- Parameters:
mouseSensitivity
- the new mouse sensitivity value
-
getCinematicCameraEnabled
public boolean getCinematicCameraEnabled()Returns the raw cinematic camera value -
setCinematicCameraEnabled
public void setCinematicCameraEnabled(boolean cinematicCameraEnabled) Sets the cinematic camera value.- Parameters:
cinematicCameraEnabled
- the new cinematic camera value
-