Class OnMechanicActionDoneEvent

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

public abstract class OnMechanicActionDoneEvent extends Event
Triggered when a player finished a mechanic action.
  • Constructor Details

    • OnMechanicActionDoneEvent

      public OnMechanicActionDoneEvent()
  • 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(zombie.characters.IsoGameCharacter character, Boolean success, Integer vehicleId, String partId, Long itemId, Boolean installing)
      Called Event Handling Method
      Parameters:
      character - The character who performed the mechanic action.
      success - Whether the machanic action was successful or not.
      vehicleId - The identifier of the vehicle on which the mechanic action is being performed.
      partId - The vehicle part identifier that is being installed or removed.
      itemId - The item identifier used to perform the mechanic action.
      installing - Whether the vehicle part is being installed or removed.