Interface NaturalSpawner
public interface NaturalSpawner
Natural spawner configuration in a
Biome.
See Keys.NATURAL_SPAWNERS and Keys.SPAWN_CHANCE.
Alternatively use NaturalSpawnCost.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintmax()Returns the maximum amount to spawn in an attempt.intmin()Returns the minimum amount to spawn in an attempt.static NaturalSpawnerof(EntityType<?> type, int weight, int min, int max) EntityType<?> type()Returns the entity type to spawn.intweight()Returns the relative spawn weight.
-
Method Details
-
of
-
type
EntityType<?> type()Returns the entity type to spawn.- Returns:
- The entity type to spawn
-
min
int min()Returns the minimum amount to spawn in an attempt.- Returns:
- The minimum amount
-
max
int max()Returns the maximum amount to spawn in an attempt.- Returns:
- The maximum amount
-
weight
int weight()Returns the relative spawn weight.- Returns:
- The spawn weight
-