Class BedwarsUpgradeImprovedEvent
java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsUpgradeImprovedEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class BedwarsUpgradeImprovedEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionBedwarsUpgradeImprovedEvent
(Game game, UpgradeStorage storage, Upgrade upgrade, double oldLevel, double newLevel) -
Method Summary
Modifier and TypeMethodDescriptiongetGame()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
double
double
double
boolean
void
setCancelled
(boolean cancel) void
setNewLevel
(double newLevel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BedwarsUpgradeImprovedEvent
public BedwarsUpgradeImprovedEvent(Game game, UpgradeStorage storage, Upgrade upgrade, double oldLevel, double newLevel) - Parameters:
game
-storage
-upgrade
-oldLevel
-newLevel
-
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getGame
- Returns:
- game
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getUpgrade
- Returns:
- upgrade
-
getStorage
- Returns:
- storage of this upgrades type
-
getNewLevel
public double getNewLevel()- Returns:
- new level
-
getOldLevel
public double getOldLevel()- Returns:
- old level
-
getOriginalNewLevel
public double getOriginalNewLevel()- Returns:
- new level (not edited by this event)
-
setNewLevel
public void setNewLevel(double newLevel) - Parameters:
newLevel
-
-