Interface MobSpawnCost
- All Superinterfaces:
Wrapper
A mob's biome spawn cost.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondoublecharge()The energy charged for each nearby mob of this type.static MobSpawnCostReads a Minecraft mob spawn cost.doubleThe maximum local energy budget available to the mob.static MobSpawnCostof(double energyBudget, double charge) Creates a mob spawn cost.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
energyBudget
The maximum local energy budget available to the mob.- Returns:
- the mob's energy budget
- Since:
- 4.0.0
-
charge
The energy charged for each nearby mob of this type.- Returns:
- the per-mob charge
- Since:
- 4.0.0
-
of
Creates a mob spawn cost.- Parameters:
energyBudget- the maximum local energy budget available to the mobcharge- the energy charged for each nearby mob of this type- Returns:
- a new mob spawn cost
- Since:
- 4.0.0
-
decode
Reads a Minecraft mob spawn cost.- Parameters:
minecraftMobSpawnCost- the Minecraft mob spawn cost to read- Returns:
- the wrapped mob spawn cost
- Since:
- 4.0.0
-