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
  • 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

      public Game getGame()
      Returns:
      game
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getUpgrade

      public Upgrade getUpgrade()
      Returns:
      upgrade
    • getStorage

      public UpgradeStorage 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 -