Class ClientEventRegistry

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

public class ClientEventRegistry extends Object
Events consumers subscribe in the IClientPlugin.initialize(IClientAPI) method on your plugin. Example: DEATH_WAYPOINT_EVENT.subscribe(MOD_ID, Consumer)
  • Field Details

    • DEATH_WAYPOINT_EVENT

      public static final Event<DeathWaypointEvent> DEATH_WAYPOINT_EVENT
      Indicates a Death Waypoint is about to be created for the player. Event will be a DeathWaypointEvent, which can be cancelled. Can be cancelled, which will prevent the waypoint creation.
    • DISPLAY_UPDATE_EVENT

      public static final Event<DisplayUpdateEvent> DISPLAY_UPDATE_EVENT
      Indicates a change in the display characteristics of the specified UI. Event will be a DisplayUpdateEvent, which can not be cancelled.
    • MAPPING_EVENT

      public static final Event<MappingEvent> MAPPING_EVENT
      Indicates JourneyMap has started or stopped mapping chunks in the dimension. Event will be a MappingEvent. Cannot be cancelled.
    • INFO_SLOT_REGISTRY_EVENT

      public static final Event<RegistryEvent.InfoSlotRegistryEvent> INFO_SLOT_REGISTRY_EVENT
      Register info slots. RegistryEvent
    • OPTIONS_REGISTRY_EVENT

      public static final Event<RegistryEvent.OptionsRegistryEvent> OPTIONS_REGISTRY_EVENT
      Register options in the addon options screen. RegistryEvent
    • ENTITY_RADAR_UPDATE_EVENT

      public static final Event<EntityRadarUpdateEvent> ENTITY_RADAR_UPDATE_EVENT
      This event is fired when JourneyMap updates an entity before it is displayed on the map. This event is cancellable, when cancelled, it will prevent the entity from being displayed on the map.
    • ENTITY_REGISTRATION_EVENT

      public static final Event<EntityRegistrationEvent> ENTITY_REGISTRATION_EVENT
      This event is fired very early in mod loading so that JourneyMap has a handle on possible entities to display on the map This event is not cancellable.
  • Constructor Details

    • ClientEventRegistry

      public ClientEventRegistry()