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
-
Method Summary
Modifier and TypeMethodDescriptionint
max()
Returns the maximum amount to spawn in an attempt.int
min()
Returns the minimum amount to spawn in an attempt.static NaturalSpawner
of
(EntityType<?> type, int weight, int min, int max) EntityType
<?> type()
Returns the entity type to spawn.int
weight()
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
-