(210706弃用)物品价值与任务的价值累计方案

进行对物品价值的查询。同时提供了任务的价值累计方案

物品价值查询

你可以通过ItemPriceManager(team.liuwei.minelastdaysproxy.function.itemprice)进行物品价值的查询

   /**
     * 获取目标材料的价格
     */
    public int getPrice(Material itemMaterial) 

    /**
     * 获取目标物品的价格(计算数量)
     */
    public int getPriceWithAmount(ItemStack itemStack) 
    
        /**
     * 获取目标物品的价格(不计算数量)
     */
    public int getPriceWithoutAmount(ItemStack itemStack) 

任务的价值累计方案

  1. 通过RealItemPickUpEvent来监听玩家拾取物品

  2. 通过ItemPriceManager获得物品价值

  3. 进行累计

Last updated

Was this helpful?