public static class SpawnSettings.SpawnDensity extends Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<SpawnSettings.SpawnDensity> |
CODEC |
private double |
gravityLimit |
private double |
mass |
Modifier | Constructor and Description |
---|---|
private |
SpawnDensity(double gravityLimit,
double mass) |
Modifier and Type | Method and Description |
---|---|
double |
getGravityLimit()
Represents the cap of gravity as in
GravityField.calculate(BlockPos, double) for
entity spawning. |
double |
getMass()
Represents the mass of each entity spawned.
|
public static final com.mojang.serialization.Codec<SpawnSettings.SpawnDensity> CODEC
private final double gravityLimit
private final double mass
public double getGravityLimit()
GravityField.calculate(BlockPos, double)
for
entity spawning. If the cap is exceeded, the entity spawning attempt
will skip.public double getMass()