Package journeymap.api.v2.common.event
Class CommonEventRegistry
java.lang.Object
journeymap.api.v2.common.event.CommonEventRegistry
Common events, fired both on Client and Server
Events consumers subscribe in the
IClientPlugin.initialize(IClientAPI) or @link IServerPlugin#initialize(IServerAPI) method on your plugin.
Example:
WAYPOINT_EVENT.subscribe(MOD_ID, Consumer)-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<WaypointEvent> This event handles all the CRUD operations of a waypoints on client and server.static final Event<WaypointGroupEvent> This event handles all the CRUD operations of a waypoint groups on client and server.static final Event<WaypointGroupTransferEvent> This event fires when a waypoint is transferred from one group to another, from may be null. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WAYPOINT_EVENT
This event handles all the CRUD operations of a waypoints on client and server. -
WAYPOINT_GROUP_EVENT
This event handles all the CRUD operations of a waypoint groups on client and server. -
WAYPOINT_GROUP_TRANSFER_EVENT
This event fires when a waypoint is transferred from one group to another, from may be null.
-
-
Constructor Details
-
CommonEventRegistry
public CommonEventRegistry()
-