Class CorporationExperienceChangeEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
us.teaminceptus.novaconomy.api.events.corporation.CorporationExperienceChangeEvent
All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
CorporationAwardAchievementEvent

public class CorporationExperienceChangeEvent extends CorporationEvent implements Cancellable
Called before a Corporation's Experience Naturally Changes
  • Constructor Details

    • CorporationExperienceChangeEvent

      public CorporationExperienceChangeEvent(Corporation corporation, double oldExperience, double newExperience)
      Constructs a CorporationExperienceChangeEvent.
      Parameters:
      corporation - The Corporation whose Experience is changing
      oldExperience - The Corporation's Experience before the change
      newExperience - The Corporation's Experience after the change
  • Method Details

    • getOldExperience

      public double getOldExperience()
      Gets the Corporation's Experience before the change.
      Returns:
      Corporation's Experience before the change
    • getNewExperience

      public double getNewExperience()
      Gets the Corporation's Experience after the change.
      Returns:
      Corporation's Experience after the change
    • setNewExperience

      public void setNewExperience(double newExperience)
      Sets the Corporation's Experience after the change.
      Parameters:
      newExperience - Corporation's Experience after the change
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable