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
FieldsModifier and TypeFieldDescriptionprotected org.bukkit.entity.Entityprotected MountController.MountInputprotected Mountable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateDirection(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.
ExtendAbstractMountControllerto use the default implementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:MountControllerUpdate 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.
ExtendAbstractMountControllerto use the default implementation.- Specified by:
updateDirectionin interfaceMountController- Parameters:
controller- wrapped look controller of the vehiclemodel- model of the vehicle
-