Class LogisticsCalculator

java.lang.Object
net.chen.legacyLand.resource.LogisticsCalculator

public final class LogisticsCalculator extends Object
物流价值链计算器 计算运输成本和保险费用
  • Constructor Details

    • LogisticsCalculator

      public LogisticsCalculator()
  • Method Details

    • calculateTransportCost

      public static LogisticsCalculator.TransportCost calculateTransportCost(org.bukkit.Location from, org.bukkit.Location to, org.bukkit.inventory.ItemStack... items)
      计算两点之间的运输费用
      Parameters:
      from - 起点
      to - 终点
      items - 运输的物品
      Returns:
      运输费用(包含保险)
    • calculateSimpleCost

      public static double calculateSimpleCost(org.bukkit.Location from, org.bukkit.Location to, double weight)
      计算运输费用(简化版,只传入重量)