程序包 org.bukkit.spawner

# 接口 TrialSpawnerConfiguration

所有超级接口:
  `BaseSpawner`

@Experimental public interface TrialSpawnerConfiguration extends BaseSpawner
Represents one of the configurations of a trial spawner.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `addPossibleReward(@NotNull LootTable table, int weight)`
  Add a `LootTable` to the list of tables this spawner can pick a reward from with a given weight.
  `float`
  `getAdditionalSimultaneousEntities()`
  Gets the additional number of entities this spawner can track at once per tracked player.
  `float`
  `getAdditionalSpawnsBeforeCooldown()`
  Gets the additional number of entities the spawner will spawn per tracked player before going into cooldown.
  `float`
  `getBaseSimultaneousEntities()`
  Gets the base number of entities this spawner can track at once.
  `float`
  `getBaseSpawnsBeforeCooldown()`
  Gets the base number of entities the spawner will spawn before going into cooldown.
  `@NotNull Map<LootTable,Integer>`
  `getPossibleRewards()`
  Gets a list of `LootTable`s this spawner can pick a reward from as well as their associated weight to be chosen.
  `void`
  `removePossibleReward(@NotNull LootTable table)`
  Removes the provided `LootTable` from the list of tables this spawner can pick a reward from.
  `void`
  `setAdditionalSimultaneousEntities(float amount)`
  Sets the additional number of entities this spawner can track at once per tracked player.
  `void`
  `setAdditionalSpawnsBeforeCooldown(float amount)`
  Sets the additional number of entities the spawner will spawn per tracked player before going into cooldown.
  `void`
  `setBaseSimultaneousEntities(float amount)`
  Sets the base number of entities this spawner can track at once.
  `void`
  `setBaseSpawnsBeforeCooldown(float amount)`
  Sets the base number of entities the spawner will spawn before going into cooldown.
  `void`
  `setPossibleRewards(@NotNull Map<LootTable,Integer> rewards)`
  Sets the list of `LootTable`s and their weights this spawner can pick a reward from.

  ### 从接口继承的方法 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

    @NotNull @NotNull Map<LootTable,Integer> getPossibleRewards()
    Gets a list of `LootTable`s 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

    void addPossibleReward(@NotNull @NotNull LootTable table, int weight)
    Add a `LootTable` to the list of tables this spawner can pick a reward from with a given weight.
    参数:
      `table` - the loot table
      `weight` - the weight, must be at least 1

  - ### removePossibleReward

    void removePossibleReward(@NotNull @NotNull LootTable table)
    Removes the provided `LootTable` from the list of tables this spawner can pick a reward from.
    参数:
      `table` - the loot table

  - ### setPossibleRewards

    void setPossibleRewards(@NotNull @NotNull Map<LootTable,Integer> rewards)
    Sets the list of `LootTable`s 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