public static class SpawnSettings.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private float |
creatureSpawnProbability |
private boolean |
playerSpawnFriendly |
private Map<EntityType<?>,SpawnSettings.SpawnDensity> |
spawnCosts |
private Map<SpawnGroup,List<SpawnSettings.SpawnEntry>> |
spawners |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SpawnSettings |
build() |
SpawnSettings.Builder |
creatureSpawnProbability(float probability) |
SpawnSettings.Builder |
playerSpawnFriendly() |
SpawnSettings.Builder |
spawn(SpawnGroup spawnGroup,
SpawnSettings.SpawnEntry spawnEntry) |
SpawnSettings.Builder |
spawnCost(EntityType<?> entityType,
double mass,
double gravityLimit) |
private final Map<SpawnGroup,List<SpawnSettings.SpawnEntry>> spawners
private final Map<EntityType<?>,SpawnSettings.SpawnDensity> spawnCosts
private float creatureSpawnProbability
private boolean playerSpawnFriendly
public SpawnSettings.Builder spawn(SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry)
public SpawnSettings.Builder spawnCost(EntityType<?> entityType, double mass, double gravityLimit)
public SpawnSettings.Builder creatureSpawnProbability(float probability)
public SpawnSettings.Builder playerSpawnFriendly()
public SpawnSettings build()