Class LandPriceCalculator
java.lang.Object
net.chen.legacyLand.resource.pricing.LandPriceCalculator
地价计算器(P3)。
V(chunk) = base × (α·R(t) + β·biomeFactor + γ·locationFactor)
- R(t):当前剩余储量(
)。
invalid reference
ChunkResourceData#getCurrentValue - biomeFactor:群系系数(
),首扫时确定。
invalid reference
ChunkResourceData#getBiomeFactor - locationFactor:距离所属城镇 spawn 的衰减;无城镇时为 0。
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublevaluate(String world, int chunkX, int chunkZ, ResourcePricingConfig config) 计算并返回地价,若区块未普查则返回-1。
-
Method Details
-
valuate
计算并返回地价,若区块未普查则返回-1。
-