Package journeymap.api.v2.common.event
Class FullscreenEventRegistry
java.lang.Object
journeymap.api.v2.common.event.FullscreenEventRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<FullscreenDisplayEvent.AddonButtonDisplayEvent> This event is used for adding buttons to the right panel on the fullscreen map.static final Event<FullscreenDisplayEvent.CustomToolbarEvent> Used to create custom toolbars on the fullscreen map.static final Event<FullscreenMapEvent.ClickEvent> Indicates that the fullscreen map is going to have a mouse click.static final Event<FullscreenMapEvent.MouseDraggedEvent> Indicates the start of the mouse dragging.static final Event<FullscreenMapEvent.MouseMoveEvent> Indicates moving of the mouse, gets block info where the cursor is pointing.static final Event<PopupMenuEvent.FullscreenPopupMenuEvent> This event is fired when a user right clicks anywhere on the fullscreen map that is not an overlay or waypoint.static final Event<FullscreenDisplayEvent.MapTypeButtonDisplayEvent> Deprecated.since this is a special event that requires special modification to use, it is suggested to not use it without first discussing with TeamJM developers.static final Event<PopupMenuEvent.WaypointPopupMenuEvent> This event is fired when a user right-clicks on a waypoint icon. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FULLSCREEN_MAP_CLICK_EVENT
Indicates that the fullscreen map is going to have a mouse click. This is a staged event. Pre can be canceled, post cannot be canceled.FullscreenMapEvent.ClickEvent, which can be cancelled. -
FULLSCREEN_MAP_DRAG_EVENT
Indicates the start of the mouse dragging. This is a staged event. Pre can be canceled, post cannot be canceled.FullscreenMapEvent.MouseDraggedEvent, which can be cancelled. -
FULLSCREEN_MAP_MOVE_EVENT
Indicates moving of the mouse, gets block info where the cursor is pointing.FullscreenMapEvent.MouseMoveEvent, which can not be cancelled. -
FULLSCREEN_POPUP_MENU_EVENT
This event is fired when a user right clicks anywhere on the fullscreen map that is not an overlay or waypoint. To target overlays, seeIOverlayListener.onOverlayMenuPopup(UIState, Point2D.Double, BlockPos, ModPopupMenu)This event is cancellable -
WAYPOINT_POPUP_MENU_EVENT
This event is fired when a user right-clicks on a waypoint icon. This event is cancellable. -
CUSTOM_TOOLBAR_UPDATE_EVENT
Used to create custom toolbars on the fullscreen map. -
MAP_TYPE_BUTTON_DISPLAY_EVENT
@Deprecated public static final Event<FullscreenDisplayEvent.MapTypeButtonDisplayEvent> MAP_TYPE_BUTTON_DISPLAY_EVENTDeprecated.since this is a special event that requires special modification to use, it is suggested to not use it without first discussing with TeamJM developers.Used for adding buttons to the maptype theme button list. We currently do not have any hooks to add map types, but this event exists for those that want to add maptypes through your own means. This event is not cancellable -
ADDON_BUTTON_DISPLAY_EVENT
public static final Event<FullscreenDisplayEvent.AddonButtonDisplayEvent> ADDON_BUTTON_DISPLAY_EVENTThis event is used for adding buttons to the right panel on the fullscreen map. This event is not cancellable.
-
-
Constructor Details
-
FullscreenEventRegistry
public FullscreenEventRegistry()
-