Class CommonEventRegistry

java.lang.Object
journeymap.api.v2.common.event.CommonEventRegistry

public class CommonEventRegistry extends Object
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 Details

    • WAYPOINT_EVENT

      public static final Event<WaypointEvent> WAYPOINT_EVENT
      This event handles all the CRUD operations of a waypoints on client and server.
    • TELEPORT_EVENT

      public static final Event<TeleportEvent> TELEPORT_EVENT
      This event handles all the CRUD operations of a waypoints on client and server.
    • WAYPOINT_GROUP_EVENT

      public static final Event<WaypointGroupEvent> WAYPOINT_GROUP_EVENT
      This event handles all the CRUD operations of a waypoint groups on client and server.
    • WAYPOINT_GROUP_TRANSFER_EVENT

      public static final Event<WaypointGroupTransferEvent> 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()