接口 TrialSpawnerConfiguration
- 所有超级接口:
BaseSpawner
-
方法概要
修饰符和类型方法说明voidaddPossibleReward(@NotNull LootTable table, int weight) 将LootTable添加到此刷怪笼可以从中选择奖励的表列表中,并带有给定的权重。float获取此刷怪笼可以为每个跟踪的玩家同时跟踪的额外实体数量。float获取刷怪笼在进入冷却之前将为每个跟踪的玩家生成的额外实体数量。float获取此刷怪笼可以同时跟踪的基础实体数量。float获取刷怪笼在进入冷却之前将生成的基础实体数量。获取此刷怪笼可以从中选择奖励的LootTable列表及其关联的选择权重。void从该刷怪笼可以选择奖励的表列表中移除指定的LootTable。voidsetAdditionalSimultaneousEntities(float amount) 设置此刷怪笼可以为每个跟踪的玩家同时跟踪的额外实体数量。voidsetAdditionalSpawnsBeforeCooldown(float amount) 设置刷怪笼在进入冷却之前将为每个跟踪的玩家生成的额外实体数量。voidsetBaseSimultaneousEntities(float amount) 设置此刷怪笼可以同时跟踪的基础实体数量。voidsetBaseSpawnsBeforeCooldown(float amount) 设置刷怪笼在进入冷却之前将生成的基础实体数量。voidsetPossibleRewards(@NotNull Map<LootTable, Integer> rewards) 设置此刷怪笼可以选择奖励的LootTable列表及其权重。从接口继承的方法 org.bukkit.spawner.BaseSpawner
addPotentialSpawn, addPotentialSpawn, getDelay, getPotentialSpawns, getRequiredPlayerRange, getSpawnedEntity, getSpawnedType, getSpawnRange, setDelay, setPotentialSpawns, setRequiredPlayerRange, setSpawnedEntity, setSpawnedEntity, setSpawnedType, setSpawnRange
-
方法详细资料
-
getBaseSpawnsBeforeCooldown
float getBaseSpawnsBeforeCooldown()获取刷怪笼在进入冷却之前将生成的基础实体数量。原文:Gets the base number of entities the spawner will spawn before going into cooldown.
- 返回:
- the number of entities
-
setBaseSpawnsBeforeCooldown
void setBaseSpawnsBeforeCooldown(float amount) 设置刷怪笼在进入冷却之前将生成的基础实体数量。原文:Sets the base number of entities the spawner will spawn before going into cooldown.
- 参数:
amount- the number of entities
-
getBaseSimultaneousEntities
float 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.
- 返回:
- the number of entities
-
setBaseSimultaneousEntities
void 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.
- 参数:
amount- the number of entities
-
getAdditionalSpawnsBeforeCooldown
float getAdditionalSpawnsBeforeCooldown()获取刷怪笼在进入冷却之前将为每个跟踪的玩家生成的额外实体数量。原文:Gets the additional number of entities the spawner will spawn per tracked player before going into cooldown.
- 返回:
- the number of entities
-
setAdditionalSpawnsBeforeCooldown
void setAdditionalSpawnsBeforeCooldown(float amount) 设置刷怪笼在进入冷却之前将为每个跟踪的玩家生成的额外实体数量。原文:Sets the additional number of entities the spawner will spawn per tracked player before going into cooldown.
- 参数:
amount- the number of entities
-
getAdditionalSimultaneousEntities
float 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.
- 返回:
- the number of entities
-
setAdditionalSimultaneousEntities
void 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.
- 参数:
amount- the number of entities
-
getPossibleRewards
获取此刷怪笼可以从中选择奖励的LootTable列表及其关联的选择权重。原文:Gets a list of
LootTables this spawner can pick a reward from as well as their associated weight to be chosen.- 返回:
- a map of loot tables and their associated weight, or an empty map if there are none
-
addPossibleReward
将LootTable添加到此刷怪笼可以从中选择奖励的表列表中,并带有给定的权重。原文:Add a
LootTableto the list of tables this spawner can pick a reward from with a given weight.- 参数:
table- the loot tableweight- the weight, must be at least 1
-
removePossibleReward
从该刷怪笼可以选择奖励的表列表中移除指定的LootTable。原文:Removes the provided
LootTablefrom the list of tables this spawner can pick a reward from.- 参数:
table- the loot table
-
setPossibleRewards
设置此刷怪笼可以选择奖励的LootTable列表及其权重。
映射中的所有战利品表必须非空,且所有权重必须至少为 1。原文:Sets the list of
LootTables 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.- 参数:
rewards- a map of loot tables and their weights, or null to clear all possible tables
-