Class BiomeSpawner.Builder
java.lang.Object
dev.wyck.biome.entity.BiomeSpawner.Builder
- Enclosing interface:
BiomeSpawner
@AsOf("2.3.0")
@Deprecated(since="4.0.0")
public static final class BiomeSpawner.Builder
extends Object
Deprecated.
A builder for creating a BiomeSpawner.
- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Builds the BiomeSpawner.spawnCost(EntityType type, double charge, double energyBudget) Deprecated.Adds a spawn cost to the builder.spawnCost(EntityType type, SpawnCost cost) Deprecated.Adds a spawn cost to the builder.spawnCosts(Map<EntityType, SpawnCost> costs) Deprecated.Adds multiple spawn costs to the builder.spawner(MobCategory category, int weight, NaturalSpawner spawner) Deprecated.Adds a spawner to the builder.spawner(MobCategory category, int weight, EntityType type, int minCount, int maxCount) Deprecated.Adds a spawner to the builder.spawner(MobCategory category, NaturalSpawner spawner) Deprecated.Adds a spawner to the builder.spawners(MobCategory category, WeightedList<NaturalSpawner> list) Deprecated.Adds multiple spawners to the builder.
-
Constructor Details
-
Builder
Deprecated. -
Builder
Deprecated.
-
-
Method Details
-
spawner
Deprecated.Adds a spawner to the builder.- Parameters:
category- the category of the spawnerspawner- 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) Deprecated.Adds a spawner to the builder.- Parameters:
category- the category of the spawnerweight- the weight of the spawnerspawner- 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) Deprecated.Adds a spawner to the builder.- Parameters:
category- the category of the spawnerweight- the weight of the spawnertype- the entity type of the spawnerminCount- the minimum number of entities to spawnmaxCount- 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) Deprecated.Adds multiple spawners to the builder.- Parameters:
category- the category of the spawnerslist- the list of spawners to add- Returns:
- the builder instance
- Since:
- 2.3.0
-
spawnCost
Deprecated.Adds a spawn cost to the builder.- Parameters:
type- the entity type to add the spawn cost forcost- 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) Deprecated.Adds a spawn cost to the builder.- Parameters:
type- the entity type to add the spawn cost forcharge- the charge to add to the spawn costenergyBudget- the energy budget to add to the spawn cost- Returns:
- the builder instance
- Since:
- 2.3.0
-
spawnCosts
Deprecated.Adds multiple spawn costs to the builder.- Parameters:
costs- the spawn costs to add- Returns:
- the builder instance
- Since:
- 2.3.0
-
build
Deprecated.Builds the BiomeSpawner.- Returns:
- The built BiomeSpawner.
- Since:
- 2.3.0
-
MobSpawnSettings.Builder