Interface MountController
- All Known Implementing Classes:
AbstractMountController,FlyingMountController,WalkingMountController
public interface MountController
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classData class containing the movement control sent by a player. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanorg.bukkit.entity.EntitygetInput()getMount()voidsetCanDamageMount(boolean flag) voidsetCanInteractMount(boolean flag) voiddefault booleanWhether the engine should tick this controller's movement on bases that are not auto-ticked by the server (non-Mob bases such asItemDisplay).voidupdateDirection(LookController controller, ActiveModel model) voidupdateDriverMovement(MoveController controller, ActiveModel model) voidupdatePassengerMovement(MoveController controller, ActiveModel model) default voidupdateRiderPosition(MoveController controller)
-
Method Details
-
getEntity
org.bukkit.entity.Entity getEntity() -
getInput
MountController.MountInput getInput() -
setInput
-
getMount
Mount getMount() -
setCanDamageMount
void setCanDamageMount(boolean flag) -
canDamageMount
boolean canDamageMount() -
setCanInteractMount
void setCanInteractMount(boolean flag) -
canInteractMount
boolean canInteractMount() -
updateDriverMovement
-
updatePassengerMovement
-
shouldEngineTickMovement
default boolean shouldEngineTickMovement()Whether the engine should tick this controller's movement on bases that are not auto-ticked by the server (non-Mob bases such asItemDisplay). Mob bases always tick their controllers and ignore this. Defaults to false; override to true to run a custom controller on a non-Mob base. -
updateRiderPosition
-
updateDirection
-