注解的使用
org.bukkit.Utility
-
org.bukkit中Utility的使用
-
org.bukkit.inventory中Utility的使用
修饰符和类型方法说明void
ItemStack.addEnchantment
(@NotNull Enchantment ench, int level) 向物品堆添加附魔
.void
ItemStack.addEnchantments
(@NotNull Map<Enchantment, Integer> enchantments) 向物品堆添加附魔.void
ItemStack.addUnsafeEnchantments
(@NotNull Map<Enchantment, Integer> enchantments) 以不安全的方式向物品堆添加附魔.boolean
int
ItemStack.getMaxStackSize()
Get the maximum stack size for this item.ItemStack.getType()
获取该物品的种类.int
ItemStack.hashCode()
boolean
该方法与equals方法相同, 但不考虑堆叠数量.ItemStack.serialize()
void
设置该物品的种类.ItemStack.toString()