Class OnFillWorldObjectContextMenuEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnFillWorldObjectContextMenuEvent

public abstract class OnFillWorldObjectContextMenuEvent extends Event
Triggered when world object context menus are being filled.
  • Constructor Details

    • OnFillWorldObjectContextMenuEvent

      public OnFillWorldObjectContextMenuEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(Integer playerIndex, se.krka.kahlua.vm.KahluaTable context, se.krka.kahlua.vm.KahluaTable worldObjects, Boolean test)
      Called Event Handling Method
      Parameters:
      playerIndex - The index of the player for which the context menu is being filled.
      context - The context menu to be filled.
      worldObjects - The world objects available nearby the player.
      test - Set to true if called for the purpose of testing for nearby objects.