Class AbstractMountController
java.lang.Object
com.ticxo.modelengine.api.mount.controller.AbstractMountController
- All Implemented Interfaces:
MountController
- Direct Known Subclasses:
FlyingMountController
,FlyingMountController_v16
,FlyingMountForcedController
,WalkingMountController
Simple abstract implementation of a basic
MountController
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ticxo.modelengine.api.mount.controller.MountController
MountController.MountInput
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.bukkit.entity.Entity
protected MountController.MountInput
protected Mountable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
updateDirection
(LookController controller, ModeledEntity model) Update the look direction of the vehicle.
This method is called each movement tick of the vehicle, and is only called when the controller is used by a driver.
ExtendAbstractMountController
to use the default implementation.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, updateDriverMovement, updatePassengerMovement, updateRiderPosition
-
Field Details
-
entity
protected org.bukkit.entity.Entity entity -
input
-
mountable
-
-
Constructor Details
-
AbstractMountController
public AbstractMountController()
-
-
Method Details
-
updateDirection
Description copied from interface:MountController
Update the look direction of the vehicle.
This method is called each movement tick of the vehicle, and is only called when the controller is used by a driver.
ExtendAbstractMountController
to use the default implementation.- Specified by:
updateDirection
in interfaceMountController
- Parameters:
controller
- wrapped look controller of the vehiclemodel
- model of the vehicle
-