public class CommonEventRegistry
extends java.lang.Object
IClientPlugin.initialize(IClientAPI) or @link IServerPlugin#initialize(IServerAPI) method on your plugin.
Example:
WAYPOINT_EVENT.subscribe(MOD_ID, Consumer)| Modifier and Type | Field and Description |
|---|---|
static Event<DeathWaypointEvent> |
DEATH_WAYPOINT_EVENT
Fired before a death waypoint is created.
|
static Event<WaypointEvent> |
WAYPOINT_EVENT
This event handles all the CRUD operations of a waypoints on client and server.
|
static Event<WaypointGroupEvent> |
WAYPOINT_GROUP_EVENT
This event handles all the CRUD operations of a waypoint groups on client and server.
|
static Event<WaypointGroupTransferEvent> |
WAYPOINT_GROUP_TRANSFER_EVENT
This event fires when a waypoint is transferred from one group to another, from may be null.
|
| Constructor and Description |
|---|
CommonEventRegistry() |
public static final Event<WaypointEvent> WAYPOINT_EVENT
public static final Event<WaypointGroupEvent> WAYPOINT_GROUP_EVENT
public static final Event<WaypointGroupTransferEvent> WAYPOINT_GROUP_TRANSFER_EVENT
public static final Event<DeathWaypointEvent> DEATH_WAYPOINT_EVENT
WaypointEvent CREATE is suppressed for death
waypoints so subscribers receive exactly one notification per death.