Interface ItemSpawner

All Superinterfaces:
Upgrade

public interface ItemSpawner extends Upgrade
  • Method Details

    • getItemSpawnerType

      ItemSpawnerType getItemSpawnerType()
      Returns:
    • getLocation

      org.bukkit.Location getLocation()
      Returns:
    • hasCustomName

      boolean hasCustomName()
      Returns:
    • getCustomName

      String getCustomName()
      Returns:
    • getStartLevel

      double getStartLevel()
      Returns:
    • getCurrentLevel

      double getCurrentLevel()
      Returns:
    • getHologramEnabled

      boolean getHologramEnabled()
      Returns:
    • setTeam

      void setTeam(Team team)
      Sets team of this upgrade
      Parameters:
      team - current team
    • getTeam

      Team getTeam()
      Returns:
      registered team for this upgrade
    • setCurrentLevel

      void setCurrentLevel(double level)
      Parameters:
      level -
    • addToCurrentLevel

      default void addToCurrentLevel(double level)
    • getName

      default String getName()
      Specified by:
      getName in interface Upgrade
      Returns:
      registered name of this upgrade
    • getInstanceName

      default String getInstanceName()
      Specified by:
      getInstanceName in interface Upgrade
      Returns:
      identificator of this upgrade instance
    • getLevel

      default double getLevel()
      Specified by:
      getLevel in interface Upgrade
      Returns:
      current level of upgrade
    • setLevel

      default void setLevel(double level)
      Description copied from interface: Upgrade
      Sets level of this upgrade
      Specified by:
      setLevel in interface Upgrade
      Parameters:
      level - Current level
    • increaseLevel

      default void increaseLevel(double level)
      Description copied from interface: Upgrade
      Add levels to this upgrade
      Specified by:
      increaseLevel in interface Upgrade
      Parameters:
      level - Levels that will be added to current level
    • getInitialLevel

      default double getInitialLevel()
      Specified by:
      getInitialLevel in interface Upgrade
      Returns:
      initial level of upgrade