Object ItemCheck

  • All Implemented Interfaces:

    
    public class ItemCheck
    
                        

    物品检测器, 用于回收过期物品并更新旧版物品

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ItemCheck INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit checkItem(Player player, ItemStack itemStack, ItemInfo itemInfo) 检查物品
      final Boolean couldCheckInventory(Player $self) 当前是否可以检查物品(最多一秒检查一次玩家背包, 防止服务器噶了)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • checkItem

         final Unit checkItem(Player player, ItemStack itemStack, ItemInfo itemInfo)

        检查物品

        Parameters:
        player - 待检查玩家
        itemStack - 待检查物品
      • couldCheckInventory

         final Boolean couldCheckInventory(Player $self)

        当前是否可以检查物品(最多一秒检查一次玩家背包, 防止服务器噶了)