Class MenuOptionClicked


  • public class MenuOptionClicked
    extends Object
    An event where a menu option has been clicked.

    This event does not only trigger when clicking an option in a right-clicked menu. The event will trigger for any left click action performed (ie. clicking an item, walking to a tile, etc) as well as any right-click menu option.

    By default, when there is no action performed when left-clicking, it seems that this event still triggers with the "Cancel" action.

    • Constructor Detail

      • MenuOptionClicked

        public MenuOptionClicked()
    • Method Detail

      • consume

        public void consume()
        Marks the event as having been consumed.

        Setting this state indicates that a plugin has processed the menu option being clicked and that the event will not be passed on for handling by vanilla client code.