枚举的使用
org.bukkit.inventory.ItemFlag
-
org.bukkit.inventory中ItemFlag的使用
-
org.bukkit.inventory.meta中ItemFlag的使用
修饰符和类型方法说明void
ItemMeta.addItemFlags
(ItemFlag... itemFlags) Set itemflags which should be ignored when rendering a ItemStack in the Client.boolean
ItemMeta.hasItemFlag
(ItemFlag flag) Check if the specified flag is present on this item.void
ItemMeta.removeItemFlags
(ItemFlag... itemFlags) Remove specific set of itemFlags.