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
Called before a Corporation's Experience Naturally Changes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
corporation -
Constructor Summary
ConstructorsConstructorDescriptionCorporationExperienceChangeEvent(Corporation corporation, double oldExperience, double newExperience) Constructs a CorporationExperienceChangeEvent. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the Corporation's Experience after the change.doubleGets the Corporation's Experience before the change.booleanvoidsetCancelled(boolean cancelled) voidsetNewExperience(double newExperience) Sets the Corporation's Experience after the change.Methods inherited from class us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
getCorporation, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CorporationExperienceChangeEvent
public CorporationExperienceChangeEvent(Corporation corporation, double oldExperience, double newExperience) Constructs a CorporationExperienceChangeEvent.- Parameters:
corporation- The Corporation whose Experience is changingoldExperience- The Corporation's Experience before the changenewExperience- 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:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-