public interface SpawnerUpgrade
Modifier and Type | Method and Description |
---|---|
double |
getCost()
Get the cost of the upgrade.
|
java.lang.String |
getDisplayName()
Get the display name of the upgrade.
|
org.bukkit.inventory.ItemStack |
getIcon()
Get the icon of the upgrade that is displayed on the upgrade menu.
|
int |
getId()
Get the id of the upgrade.
|
int |
getMaxNearbyEntities()
Get the maximum nearby entities allowed around spawners.
|
int |
getMaxSpawnDelay()
Get the maximum spawn delay of spawners.
|
int |
getMinSpawnDelay()
Get the minimum spawn delay of spawners.
|
java.lang.String |
getName()
Get the name of the upgrade.
|
SpawnerUpgrade |
getNextUpgrade()
Get the next upgrade in the ladder.
|
int |
getRequiredPlayerRange()
Get the required player range from spawners.
|
int |
getSpawnCount()
Get the entities spawn count of spawners.
|
int |
getSpawnRange()
Get the spawn range of spawners.
|
boolean |
isDefault()
Check if this upgrade is a default upgrade.
|
boolean |
isEntityAllowed(org.bukkit.entity.EntityType entityType)
Check if an entity is allowed to be upgraded to this upgrade.
|
void |
setAllowedEntities(java.util.List<java.lang.String> allowedEntities)
Set all the allowed entities for this upgrade.
|
void |
setCost(double cost)
Set the cost of the upgrade.
|
void |
setDisplayName(java.lang.String displayName)
Set the display name of the upgrade.
|
void |
setIcon(org.bukkit.inventory.ItemStack icon)
Set the icon of the upgrade that will be displayed on the upgrade menu.
|
void |
setMaxNearbyEntities(int maxNearbyEntities)
Set the maximum nearby entities allowed around spawners.
|
void |
setMaxSpawnDelay(int maxSpawnDelay)
Set the maximum spawn delay of spwaners.
|
void |
setMinSpawnDelay(int minSpawnDelay)
Set the minimum spawn delay of spawners.
|
void |
setNextUpgrade(SpawnerUpgrade nextUpgrade)
Set the next upgrade in the ladder.
|
void |
setRequiredPlayerRange(int requiredPlayerRange)
Set the required player range from spawners.
|
void |
setSpawnCount(int spawnCount)
Set the maximum spawn count of spawners.
|
void |
setSpawnRange(int spawnRange)
Set the spawn range of spawners.
|
java.lang.String getName()
int getId()
boolean isDefault()
SpawnerUpgrade getNextUpgrade()
void setNextUpgrade(SpawnerUpgrade nextUpgrade)
nextUpgrade
- The next upgrade to set.org.bukkit.inventory.ItemStack getIcon()
void setIcon(org.bukkit.inventory.ItemStack icon)
icon
- The icon to set.double getCost()
void setCost(double cost)
cost
- The cost to set.java.lang.String getDisplayName()
void setDisplayName(java.lang.String displayName)
displayName
- The display name.boolean isEntityAllowed(org.bukkit.entity.EntityType entityType)
entityType
- The type of the entity.void setAllowedEntities(java.util.List<java.lang.String> allowedEntities)
allowedEntities
- The allowed entities.int getMinSpawnDelay()
void setMinSpawnDelay(int minSpawnDelay)
minSpawnDelay
- The minimum spawn delay.int getMaxSpawnDelay()
void setMaxSpawnDelay(int maxSpawnDelay)
maxSpawnDelay
- The maximum spawn delay.int getSpawnCount()
void setSpawnCount(int spawnCount)
spawnCount
- The spawn count.int getMaxNearbyEntities()
void setMaxNearbyEntities(int maxNearbyEntities)
maxNearbyEntities
- The maximum allowed nearby entities.int getRequiredPlayerRange()
void setRequiredPlayerRange(int requiredPlayerRange)
requiredPlayerRange
- The required player range.int getSpawnRange()
void setSpawnRange(int spawnRange)
spawnRange
- The spawn range.