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
invalid reference
MouseHandler#turnPlayer()
when retrieving the values of mouse sensitivity and cinematic camera, prior to running calculations on these values.

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 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