Mounting Driver
ActiveModel model = ...
model.getMountManager().ifPresent(mountManager -> {
mountManager.mountDriver(entity, MountControllerTypes.WALKING);
});
Mounting Passengers
ActiveModel model = ...
model.getMountManager().ifPresent(mountManager -> {
mountManager.mountPassenger("seat", entity, MountControllerTypes.WALKING);
});
Dismounting Driver
ActiveModel model = ...
model.getMountManager().ifPresent(mountManager -> {
mountManager.dismountDriver();
});
Dismounting Passengers
ActiveModel model = ...
model.getMountManager().ifPresent(mountManager -> {
mountManager.dismountPassenger(entity);
});