Class BiomeSpawner.Builder

java.lang.Object
dev.wyck.wrapper.entity.BiomeSpawner.Builder
Enclosing interface:
BiomeSpawner

@AsOf("2.3.0") public static final class BiomeSpawner.Builder extends Object
A builder for creating a BiomeSpawner.
Since:
2.3.0
  • Field Details

  • Constructor Details

  • Method Details

    • spawner

      @AsOf("2.3.0") public BiomeSpawner.Builder spawner(MobCategory category, NaturalSpawner spawner)
      Adds a spawner to the builder.
      Parameters:
      category - the category of the spawner
      spawner - the spawner to add
      Returns:
      the builder instance
      Since:
      2.3.0
    • spawner

      @AsOf("2.3.0") public BiomeSpawner.Builder spawner(MobCategory category, int weight, NaturalSpawner spawner)
      Adds a spawner to the builder.
      Parameters:
      category - the category of the spawner
      weight - the weight of the spawner
      spawner - the spawner to add
      Returns:
      the builder instance
      Since:
      2.3.0
    • spawner

      @AsOf("2.3.0") public BiomeSpawner.Builder spawner(MobCategory category, int weight, EntityType type, int minCount, int maxCount)
      Adds a spawner to the builder.
      Parameters:
      category - the category of the spawner
      weight - the weight of the spawner
      type - the entity type of the spawner
      minCount - the minimum number of entities to spawn
      maxCount - the maximum number of entities to spawn
      Returns:
      the builder instance
      Since:
      2.3.0
    • spawners

      @AsOf("2.3.0") public BiomeSpawner.Builder spawners(MobCategory category, WeightedList<NaturalSpawner> list)
      Adds multiple spawners to the builder.
      Parameters:
      category - the category of the spawners
      list - the list of spawners to add
      Returns:
      the builder instance
      Since:
      2.3.0
    • spawnCost

      @AsOf("2.3.0") public BiomeSpawner.Builder spawnCost(EntityType type, SpawnCost cost)
      Adds a spawn cost to the builder.
      Parameters:
      type - the entity type to add the spawn cost for
      cost - the spawn cost to add
      Returns:
      the builder instance
      Since:
      2.3.0
    • spawnCost

      @AsOf("2.3.0") public BiomeSpawner.Builder spawnCost(EntityType type, double charge, double energyBudget)
      Adds a spawn cost to the builder.
      Parameters:
      type - the entity type to add the spawn cost for
      charge - the charge to add to the spawn cost
      energyBudget - the energy budget to add to the spawn cost
      Returns:
      the builder instance
      Since:
      2.3.0
    • spawnCosts

      @AsOf("2.3.0") public BiomeSpawner.Builder spawnCosts(Map<EntityType, SpawnCost> costs)
      Adds multiple spawn costs to the builder.
      Parameters:
      costs - the spawn costs to add
      Returns:
      the builder instance
      Since:
      2.3.0
    • creatureGenerationProbability

      @AsOf("2.3.0") public BiomeSpawner.Builder creatureGenerationProbability(float creatureGenerationProbability)
      Sets the creature generation probability. Default is 0.1F. Range between 0.0F - 0.9999999F.
      Parameters:
      creatureGenerationProbability - The probability of spawning a creature.
      Returns:
      The builder instance.
      Since:
      2.3.0
    • build

      @AsOf("2.3.0") public BiomeSpawner build()
      Builds the BiomeSpawner.
      Returns:
      The built BiomeSpawner.
      Since:
      2.3.0