Events
Model Engine provides 12 bukkit events for various different actions.
| Event | Description | Cancelable |
|---|---|---|
| ModelRegistrationEvent | Fired when the model generator enters and exits a phase, and when the generator has finished everything. | No |
| RegisterParserEvent | Fired during startup, allowing addons to register custom model importers (ModelParser) |
Yes |
| RegisterBehaviorParserEvent | Fired during startup, allowing addons to register custom Blockbench bone behavior parsers | Yes |
| AddModelEvent | Fired when a model is about to be added to a Modeled Entity | Yes |
| ModelSetupEvent | Fired after a model has been set up on a Modeled Entity | No |
| RemoveModelEvent | Fired when a model is about to be removed from a Modeled Entity | Yes |
| ModelMountEvent | Fired when an entity mounts on an Active Model | Yes |
| ModelDismountEvent | Fired when an entity dismounts from an Active Model | Yes |
| AnimationPlayEvent | Fired when an animation is about to be played by an Active Model | Yes |
| AnimationEndEvent | Fired when an animation ends. An animation ends when it can no longer affect the model. |
No |
| BoneTransformReadEvent | Fired when a bone's transform is read, allowing its position, rotation, and scale to be modified | No |
| BaseEntityInteractEvent | Fired when a model is being attacked or interacted | No |