Class AbstractMountController
java.lang.Object
com.ticxo.modelengine.api.mount.controller.impl.AbstractMountController
- All Implemented Interfaces:
MountController
- Direct Known Subclasses:
FlyingMountController,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 booleanprotected booleanprotected final org.bukkit.entity.Entityprotected MountController.MountInputprotected final Mount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanorg.bukkit.entity.EntitygetInput()getMount()booleanbooleanvoidsetCanDamageMount(boolean canDamageMount) voidsetCanInteractMount(boolean canInteractMount) voidvoidupdateDirection(LookController controller, ActiveModel model) 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
updateDriverMovement, updatePassengerMovement, updateRiderPosition
-
Field Details
-
entity
protected final org.bukkit.entity.Entity entity -
mount
-
input
-
canDamageMount
protected boolean canDamageMount -
canInteractMount
protected boolean canInteractMount
-
-
Constructor Details
-
AbstractMountController
-
-
Method Details
-
canDamageMount
public boolean canDamageMount()- Specified by:
canDamageMountin interfaceMountController
-
canInteractMount
public boolean canInteractMount()- Specified by:
canInteractMountin interfaceMountController
-
updateDirection
- Specified by:
updateDirectionin interfaceMountController
-
getEntity
public org.bukkit.entity.Entity getEntity()- Specified by:
getEntityin interfaceMountController
-
getMount
- Specified by:
getMountin interfaceMountController
-
getInput
- Specified by:
getInputin interfaceMountController
-
isCanDamageMount
public boolean isCanDamageMount() -
isCanInteractMount
public boolean isCanInteractMount() -
setInput
- Specified by:
setInputin interfaceMountController
-
setCanDamageMount
public void setCanDamageMount(boolean canDamageMount) - Specified by:
setCanDamageMountin interfaceMountController
-
setCanInteractMount
public void setCanInteractMount(boolean canInteractMount) - Specified by:
setCanInteractMountin interfaceMountController
-