Class BedwarsUpgradeBoughtEvent
java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsUpgradeBoughtEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class BedwarsUpgradeBoughtEvent
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
ConstructorDescriptionBedwarsUpgradeBoughtEvent
(Game game, UpgradeStorage storage, List<Upgrade> upgrades, org.bukkit.entity.Player customer, double addLevels) -
Method Summary
Modifier and TypeMethodDescriptiondouble
org.bukkit.entity.Player
getGame()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BedwarsUpgradeBoughtEvent
public BedwarsUpgradeBoughtEvent(Game game, UpgradeStorage storage, List<Upgrade> upgrades, org.bukkit.entity.Player customer, double addLevels) - Parameters:
game
-storage
-upgrades
-customer
-addLevels
-
-
-
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
-
getUpgrades
- Returns:
- list of upgrades
-
getCustomer
public org.bukkit.entity.Player getCustomer()- Returns:
- customer
-
getAddLevels
public double getAddLevels()- Returns:
- addition
-
getStorage
- Returns:
- storage for these upgrades type
-