Class FlyingMountForcedController

java.lang.Object
com.ticxo.modelengine.api.mount.controller.AbstractMountController
com.ticxo.modelengine.api.mount.controller.flying.FlyingMountForcedController
All Implemented Interfaces:
MountController

public class FlyingMountForcedController extends AbstractMountController
Controller ID: force_flying
Standard airborne controller with WASD movement, jump to ascend and sneak to descend, but have dismounting on ground disabled.
  • Constructor Details

    • FlyingMountForcedController

      public FlyingMountForcedController()
  • Method Details

    • updateDriverMovement

      public void updateDriverMovement(MoveController controller, ModeledEntity model)
      Description copied from interface: MountController
      Action performed when the rider is controlling the vehicle as a driver.
      This method is called each movement tick of the vehicle.
      Parameters:
      controller - wrapped movement controller of the vehicle
      model - model of the vehicle
    • updatePassengerMovement

      public void updatePassengerMovement(MoveController controller, ModeledEntity model)
      Description copied from interface: MountController
      Action performed when the rider is controlling the vehicle as a passenger.
      This method is called each movement tick of the vehicle.
      Usually, only dismounting through sneaking is handled here, but there are no limits to what the passenger can do.
      Parameters:
      controller - wrapped movement controller of the vehicle
      model - model of the vehicle