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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate double -
Constructor Summary
ConstructorsConstructorDescriptionCalculatePlayerTurnEvent(double mouseSensitivity, boolean cinematicCameraEnabled) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the raw cinematic camera valuedoubleReturns the raw mouse sensitivity valuevoidsetCinematicCameraEnabled(boolean cinematicCameraEnabled) Sets the cinematic camera value.voidsetMouseSensitivity(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
-