Usage and constraints

Apply server-configured balancing percentages when deriving hardware capacities. Keep identifiers and stored resources unchanged; these settings take effect after a world restart.

HardwareBalance

HardwareBalance
package dev.nebulastorage.api.hardware

/** World-restart percentages for Nebula hardware. Resource capacities and identities never change through these controls. */
data class HardwareBalance(val computePercent: Int = 100, val memoryPercent: Int = 100, val bandwidthPercent: Int = 100,
                           val operatingEnergyPercent: Int = 100, val supplyPercent: Int = 100) {
    init { require(listOf(computePercent, memoryPercent, bandwidthPercent, operatingEnergyPercent, supplyPercent).all { it in 1..10000 }) }
}
Source

src/main/kotlin/dev/nebulastorage/api/hardware/HardwareBalance.kt; editorial/en.json

43b4d12d69e6033c24fa8c39dac383ef2429b446