Package org.bukkit.spawner
Interface TrialSpawnerConfiguration
- All Superinterfaces:
- BaseSpawner
Represents one of the configurations of a trial spawner.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPossibleReward(LootTable table, int weight) Add aLootTableto the list of tables this spawner can pick a reward from with a given weight.floatGets the additional number of entities this spawner can track at once per tracked player.floatGets the additional number of entities the spawner will spawn per tracked player before going into cooldown.floatGets the base number of entities this spawner can track at once.floatGets the base number of entities the spawner will spawn before going into cooldown.Gets a list ofLootTables this spawner can pick a reward from as well as their associated weight to be chosen.voidremovePossibleReward(LootTable table) Removes the providedLootTablefrom the list of tables this spawner can pick a reward from.voidsetAdditionalSimultaneousEntities(float amount) Sets the additional number of entities this spawner can track at once per tracked player.voidsetAdditionalSpawnsBeforeCooldown(float amount) Sets the additional number of entities the spawner will spawn per tracked player before going into cooldown.voidsetBaseSimultaneousEntities(float amount) Sets the base number of entities this spawner can track at once.voidsetBaseSpawnsBeforeCooldown(float amount) Sets the base number of entities the spawner will spawn before going into cooldown.voidsetPossibleRewards(Map<LootTable, Integer> rewards) Sets the list ofLootTables and their weights this spawner can pick a reward from.Methods inherited from interface org.bukkit.spawner.BaseSpawneraddPotentialSpawn, addPotentialSpawn, getDelay, getPotentialSpawns, getRequiredPlayerRange, getSpawnedEntity, getSpawnedType, getSpawnRange, setDelay, setPotentialSpawns, setRequiredPlayerRange, setSpawnedEntity, setSpawnedEntity, setSpawnedType, setSpawnRange
- 
Method Details- 
getBaseSpawnsBeforeCooldownfloat getBaseSpawnsBeforeCooldown()Gets the base number of entities the spawner will spawn before going into cooldown.- Returns:
- the number of entities
 
- 
setBaseSpawnsBeforeCooldownvoid setBaseSpawnsBeforeCooldown(float amount) Sets the base number of entities the spawner will spawn before going into cooldown.- Parameters:
- amount- the number of entities
 
- 
getBaseSimultaneousEntitiesfloat getBaseSimultaneousEntities()Gets the base number of entities this spawner can track at once.
 If the limit is reached the spawner will not be able to spawn any more entities until the existing entities are killed or move too far away.- Returns:
- the number of entities
 
- 
setBaseSimultaneousEntitiesvoid setBaseSimultaneousEntities(float amount) Sets the base number of entities this spawner can track at once.
 If the limit is reached the spawner will not be able to spawn any more entities until the existing entities are killed or move too far away.- Parameters:
- amount- the number of entities
 
- 
getAdditionalSpawnsBeforeCooldownfloat getAdditionalSpawnsBeforeCooldown()Gets the additional number of entities the spawner will spawn per tracked player before going into cooldown.- Returns:
- the number of entities
 
- 
setAdditionalSpawnsBeforeCooldownvoid setAdditionalSpawnsBeforeCooldown(float amount) Sets the additional number of entities the spawner will spawn per tracked player before going into cooldown.- Parameters:
- amount- the number of entities
 
- 
getAdditionalSimultaneousEntitiesfloat getAdditionalSimultaneousEntities()Gets the additional number of entities this spawner can track at once per tracked player.
 If the limit is reached the spawner will not be able to spawn any more entities until the existing entities are killed or move too far away.- Returns:
- the number of entities
 
- 
setAdditionalSimultaneousEntitiesvoid setAdditionalSimultaneousEntities(float amount) Sets the additional number of entities this spawner can track at once per tracked player.
 If the limit is reached the spawner will not be able to spawn any more entities until the existing entities are killed or move too far away.- Parameters:
- amount- the number of entities
 
- 
getPossibleRewardsGets a list ofLootTables this spawner can pick a reward from as well as their associated weight to be chosen.- Returns:
- a map of loot tables and their associated weight, or an empty map if there are none
 
- 
addPossibleRewardAdd aLootTableto the list of tables this spawner can pick a reward from with a given weight.- Parameters:
- table- the loot table
- weight- the weight, must be at least 1
 
- 
removePossibleRewardRemoves the providedLootTablefrom the list of tables this spawner can pick a reward from.- Parameters:
- table- the loot table
 
- 
setPossibleRewardsSets the list ofLootTables and their weights this spawner can pick a reward from.
 All loot tables in the map must be non-null and all weights must be at least 1.- Parameters:
- rewards- a map of loot tables and their weights, or null to clear all possible tables
 
 
-