接口的使用
org.bukkit.inventory.meta.ItemMeta
-
org.bukkit.inventory中ItemMeta的使用
修饰符和类型方法说明返回一个适用于给定的ItemStack的ItemMeta返回一个适用于给定的Material的ItemMetaItemFactory.getItemMeta
(@NotNull Material material) 该方法能够为给定的Material
创建一个新的元数据。ItemStack.getItemMeta()
获取此物品堆的ItemMeta
的副本.修饰符和类型方法说明返回一个适用于给定的ItemStack的ItemMeta返回一个适用于给定的Material的ItemMetaboolean
该方法用于比较两个ItemStack的元数据对象.boolean
ItemFactory.isApplicable
(@Nullable ItemMeta meta, @Nullable ItemStack stack) 该方法用于检查元数据是否能够适用于指定的ItemStack上(如果适用则物品不会丢失之前的数据).boolean
ItemFactory.isApplicable
(@Nullable ItemMeta meta, @Nullable Material material) 该方法用于检查元数据是否能够适用于指定的Material
上(如果适用则不会丢失数据).boolean
ItemStack.setItemMeta
(@Nullable ItemMeta itemMeta) 向物品堆设置元数据.ItemFactory.updateMaterial
(@NotNull ItemMeta meta, @NotNull Material material) 已过时。for internal use only -
org.bukkit.inventory.meta中ItemMeta的使用
修饰符和类型接口说明interface
Represents armor that an entity can equip.interface
Represents a bucket of axolotl.interface
interface
interface
interface
代表书(Material.WRITABLE_BOOK
或者成书
),可以有标题,作者,页面.interface
interface
Represents armor that an entity can equip and can also be colored.interface
代表能追踪指定位置的指南针.interface
代表弩.interface
代表有耐久度、可损耗的物品.interface
EnchantmentMeta 特定于专门存储附魔的物品, 而非被附魔的物品.interface
代表可以存储单个FireworkEffect的meta.例如包含Material.FIREWORK_STAR
.interface
代表一个烟花火箭
及其效果.interface
与知识之书有关的元数据.interface
interface
代表可被伸缩的地图.interface
interface
代表药水和有自定义药水效果的物品.interface
代表可以在铁砧上修复的物品.interface
代表头颅.interface
代表刷怪蛋和它刷出的实体的类型.interface
代表能够设置自定义药水效果的迷之炖菜.interface
代表热带鱼桶.