|
Wip |
|
## Mounting Driver
|
|
\ No newline at end of file |
|
|
|
|
|
```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 |