public interface UpgradeLevel
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkRequirements(SuperiorPlayer superiorPlayer)
Check all the custom requirements of the upgrade.
|
java.math.BigDecimal |
getBankLimit()
Get the bank limit of this level.
|
int |
getBlockLimit(Key key)
Get the limit of a block for this level.
|
java.util.Map<Key,java.lang.Integer> |
getBlockLimits()
Get all the block limits for this level.
|
int |
getBorderSize()
Get the border size of this level.
|
java.util.List<java.lang.String> |
getCommands()
Get all commands that will be executed when upgrading to the next level.
|
int |
getCoopLimit()
Get the coop players limit of this level.
|
UpgradeCost |
getCost()
Get the price required to upgrade to the next level.
|
double |
getCropGrowth()
Get the crop growth multiplier of this level.
|
int |
getEntityLimit(org.bukkit.entity.EntityType entityType)
Get the limit of an entity for this level.
|
int |
getEntityLimit(Key key)
Get the limit of an entity for this level.
|
java.util.Map<Key,java.lang.Integer> |
getEntityLimitsAsKeys()
Get all the entity limits for this level.
|
int |
getExactBlockLimit(Key key)
Get the exact limit of a block for this level.
|
int |
getGeneratorAmount(Key key,
org.bukkit.World.Environment environment)
Get the generator rate of a block for this level in a specific world.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getGeneratorAmounts(org.bukkit.World.Environment environment)
Get all the generator rates for this level in a specific world.
|
int |
getLevel()
Get the level of the current upgrade-level.
|
double |
getMobDrops()
Get the mob drops multiplier of this level.
|
java.lang.String |
getPermission()
Get the permission required to upgrade to this level.
|
int |
getPotionEffect(org.bukkit.potion.PotionEffectType potionEffectType)
Get the potion effect for this level.
|
java.util.Map<org.bukkit.potion.PotionEffectType,java.lang.Integer> |
getPotionEffects()
Get all the potion effects for this level.
|
double |
getPrice()
Deprecated.
See getCost()
|
int |
getRoleLimit(PlayerRole playerRole)
Get a limit of a role for this level.
|
java.util.Map<PlayerRole,java.lang.Integer> |
getRoleLimits()
Get the role limits of this level.
|
double |
getSpawnerRates()
Get the spawner rates multiplier of this level.
|
int |
getTeamLimit()
Get the team limit of this level.
|
int |
getWarpsLimit()
Get the warps limit of this level.
|
int getLevel()
@Deprecated double getPrice()
UpgradeCost getCost()
java.util.List<java.lang.String> getCommands()
java.lang.String getPermission()
java.lang.String checkRequirements(SuperiorPlayer superiorPlayer)
superiorPlayer
- The player to check the requirements on.double getCropGrowth()
double getSpawnerRates()
double getMobDrops()
int getBlockLimit(Key key)
key
- The block to check.int getExactBlockLimit(Key key)
key
- The block to check.java.util.Map<Key,java.lang.Integer> getBlockLimits()
int getEntityLimit(org.bukkit.entity.EntityType entityType)
entityType
- The entity's type to check.int getEntityLimit(Key key)
key
- The key of the entity to check.java.util.Map<Key,java.lang.Integer> getEntityLimitsAsKeys()
int getTeamLimit()
int getWarpsLimit()
int getCoopLimit()
int getBorderSize()
int getGeneratorAmount(Key key, org.bukkit.World.Environment environment)
key
- The block to check.environment
- The world environmentjava.util.Map<java.lang.String,java.lang.Integer> getGeneratorAmounts(org.bukkit.World.Environment environment)
environment
- The world environmentint getPotionEffect(org.bukkit.potion.PotionEffectType potionEffectType)
potionEffectType
- The potion effect to check.java.util.Map<org.bukkit.potion.PotionEffectType,java.lang.Integer> getPotionEffects()
java.math.BigDecimal getBankLimit()
int getRoleLimit(PlayerRole playerRole)
playerRole
- The role to check.java.util.Map<PlayerRole,java.lang.Integer> getRoleLimits()