类 MMCompatible

  • 所有已实现的接口:
    ICompatible

    public class MMCompatible
    extends java.lang.Object
    implements ICompatible
    MM物品库
    作者:
    FzmXer 2024年01月23日 00时18分
    • 方法概要

      所有方法 实例方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      boolean hasItem​(java.lang.String id)
      判断是否存在指定的物品
      org.bukkit.inventory.ItemStack itemStack​(java.lang.String id)
      获取指定id的物品
      org.bukkit.inventory.ItemStack itemStack​(java.lang.String id, org.bukkit.OfflinePlayer player)
      已过时。
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • MMCompatible

        public MMCompatible()
    • 方法详细资料

      • itemStack

        public org.bukkit.inventory.ItemStack itemStack​(java.lang.String id)
        获取指定id的物品
        指定者:
        itemStack 在接口中 ICompatible
        参数:
        id - 物品的id
        返回:
        返回对应的物品堆栈对象
      • itemStack

        @Deprecated
        public org.bukkit.inventory.ItemStack itemStack​(java.lang.String id,
                                                        org.bukkit.OfflinePlayer player)
        已过时。
        获取指定id的物品 (MM不支持此方法)
        指定者:
        itemStack 在接口中 ICompatible
        参数:
        id - 物品的id
        player - 玩家对象
        返回:
        返回对应的物品堆栈对象
      • hasItem

        public boolean hasItem​(java.lang.String id)
        判断是否存在指定的物品
        指定者:
        hasItem 在接口中 ICompatible
        参数:
        id - 物品的ID
        返回:
        如果存在指定的物品则返回true