Uses of Class
org.bukkit.Utility
| Package | Description |
|---|---|
| org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
| org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
-
Uses of Utility in org.bukkit
-
Uses of Utility in org.bukkit.inventory
Methods in org.bukkit.inventory with annotations of type Utility Modifier and Type Method Description voidItemStack. addEnchantment(Enchantment ench, int level)Adds the specifiedEnchantmentto this item stack.voidItemStack. addEnchantments(Map<Enchantment,Integer> enchantments)Adds the specified enchantments to this item stack.voidItemStack. addUnsafeEnchantments(Map<Enchantment,Integer> enchantments)Adds the specified enchantments to this item stack in an unsafe manner.booleanItemStack. equals(Object obj)intItemStack. getMaxStackSize()Get the maximum stacksize for the material hold in this ItemStack.MaterialItemStack. getType()Gets the type of this itemintItemStack. hashCode()booleanItemStack. isSimilar(ItemStack stack)This method is the same as equals, but does not consider stack size (amount).Map<String,Object>ItemStack. serialize()voidItemStack. setType(Material type)Sets the type of this itemStringItemStack. toString()Constructors in org.bukkit.inventory with annotations of type Utility Constructor Description ItemStack()