Overview
IrisEngineEvent is the base event class for Iris engine-related events. This event is fired asynchronously when engine operations occur, providing access to the engine instance.
Event Properties
| Property | Type | Description |
|---|---|---|
engine | Engine | The Iris engine instance associated with this event |
When It Fires
This event fires during various engine operations and serves as a base class for more specific engine events likeIrisEngineHotloadEvent.
Important Notes
- This event is asynchronous (constructed with
super(true)) - Cannot be cancelled
- Provides direct access to the engine instance for inspection or modification
Event Handler Example
Registering the Event
Register your listener in your plugin’sonEnable() method:
Source Code Reference
Location:core/src/main/java/com/volmit/iris/core/events/IrisEngineEvent.java