- All Superinterfaces:
Upgrade
public interface ItemSpawner
extends Upgrade
-
Method Summary
default void
double
boolean
default double
default double
org.bukkit.Location
double
boolean
default void
Add levels to this upgrade
void
default void
Sets level of this upgrade
void
Sets team of this upgrade
-
Method Details
-
getItemSpawnerType
- Returns:
-
getLocation
org.bukkit.Location getLocation()
- Returns:
-
hasCustomName
boolean hasCustomName()
- Returns:
-
-
getStartLevel
double getStartLevel()
- Returns:
-
getCurrentLevel
double getCurrentLevel()
- Returns:
-
getHologramEnabled
boolean getHologramEnabled()
- Returns:
-
setTeam
Sets team of this upgrade
- Parameters:
team
- current team
-
getTeam
- Returns:
- registered team for this upgrade
-
setCurrentLevel
void setCurrentLevel(double level)
- Parameters:
level
-
-
addToCurrentLevel
default void addToCurrentLevel(double level)
-
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