setSpawnCost

fun setSpawnCost(entityType: EntityType<*>, spawnCost: MobSpawnSettings.MobSpawnCost)

Sets the spawn cost for entityType to the given spawnCost.


fun setSpawnCost(entityType: EntityType<*>, energyBudget: Double, charge: Double = 1.0)

Sets the spawn cost for entityType to the given energyBudget and charge.