Class WalkingMountController

java.lang.Object
com.ticxo.modelengine.api.mount.controller.AbstractMountController
com.ticxo.modelengine.api.mount.controller.walking.WalkingMountController
All Implemented Interfaces:
MountController
Direct Known Subclasses:
WalkingMountForcedController

public class WalkingMountController extends AbstractMountController
Controller ID: walking
Standard ground-based controller with WASD movement, jumping and dismounting.
This is also the default controller returned when TRegistry.get(String) could not find a controller under the provided ID.
  • Constructor Details

    • WalkingMountController

      public WalkingMountController()
  • 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