Class CitizenJobChangedModEvent

All Implemented Interfaces:
IModEvent

public final class CitizenJobChangedModEvent extends AbstractCitizenModEvent
Event for when a citizen their job changes.
  • Constructor Details

    • CitizenJobChangedModEvent

      public CitizenJobChangedModEvent(ICitizenData citizen, JobEntry previousJob)
      Citizen added event.
      Parameters:
      citizen - the citizen related to the event.
      previousJob - the job the citizen had prior to the change.
  • Method Details

    • getPreviousJob

      public JobEntry getPreviousJob()
      Get the previous job of the citizen.
      Returns:
      the job entry instance.