Class WalkingMountForcedController
java.lang.Object
com.ticxo.modelengine.api.mount.controller.AbstractMountController
com.ticxo.modelengine.api.mount.controller.walking.WalkingMountController
com.ticxo.modelengine.api.mount.controller.walking.WalkingMountForcedController
- All Implemented Interfaces:
MountController
Controller ID:
Standard ground-based controller with WASD movement and jumping, but have dismounting disabled.
force_walking
Standard ground-based controller with WASD movement and jumping, but have dismounting disabled.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ticxo.modelengine.api.mount.controller.MountController
MountController.MountInput
-
Field Summary
Fields inherited from class com.ticxo.modelengine.api.mount.controller.AbstractMountController
entity, input, mountable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
updateDriverMovement
(MoveController controller, ModeledEntity model) Action performed when the rider is controlling the vehicle as a driver.
This method is called each movement tick of the vehicle.void
updatePassengerMovement
(MoveController controller, ModeledEntity model) 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.Methods inherited from class com.ticxo.modelengine.api.mount.controller.AbstractMountController
updateDirection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ticxo.modelengine.api.mount.controller.MountController
getEntity, getInput, getMountable, setEntity, setInput, setMountable, updateRiderPosition
-
Constructor Details
-
WalkingMountForcedController
public WalkingMountForcedController()
-
-
Method Details
-
updateDriverMovement
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.- Specified by:
updateDriverMovement
in interfaceMountController
- Overrides:
updateDriverMovement
in classWalkingMountController
- Parameters:
controller
- wrapped movement controller of the vehiclemodel
- model of the vehicle
-
updatePassengerMovement
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.- Specified by:
updatePassengerMovement
in interfaceMountController
- Overrides:
updatePassengerMovement
in classWalkingMountController
- Parameters:
controller
- wrapped movement controller of the vehiclemodel
- model of the vehicle
-