|
|
Wip |
|
|
\ No newline at end of file |
|
|
## Mounting Driver
|
|
|
|
|
|
```java
|
|
|
ActiveModel model = ...
|
|
|
model.getMountManager().ifPresent(mountManager -> {
|
|
|
mountManager.mountDriver(entity, MountControllerTypes.WALKING);
|
|
|
});
|
|
|
```
|
|
|
|
|
|
## Mounting Passengers
|
|
|
|
|
|
```java
|
|
|
ActiveModel model = ...
|
|
|
model.getMountManager().ifPresent(mountManager -> {
|
|
|
mountManager.mountPassenger("seat", entity, MountControllerTypes.WALKING);
|
|
|
});
|
|
|
```
|
|
|
|
|
|
## Dismounting Driver
|
|
|
|
|
|
```java
|
|
|
ActiveModel model = ...
|
|
|
model.getMountManager().ifPresent(mountManager -> {
|
|
|
mountManager.dismountDriver();
|
|
|
});
|
|
|
```
|
|
|
|
|
|
## Dismounting Passengers
|
|
|
|
|
|
```java
|
|
|
ActiveModel model = ...
|
|
|
model.getMountManager().ifPresent(mountManager -> {
|
|
|
mountManager.dismountPassenger(entity);
|
|
|
});
|
|
|
``` |
|
|
\ No newline at end of file |