org.bukkit.inventory.meta
public interface EnchantmentStorageMeta extends ItemMeta
Material.ENCHANTED_BOOK is an example
 of an item with enchantment storage.| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addStoredEnchant(Enchantment ench,
                int level,
                boolean ignoreLevelRestriction)
Stores the specified enchantment in this item meta. 
 | 
EnchantmentStorageMeta | 
clone()  | 
int | 
getStoredEnchantLevel(Enchantment ench)
Checks for the level of the stored enchantment. 
 | 
Map<Enchantment,Integer> | 
getStoredEnchants()
Gets a copy the stored enchantments in this ItemMeta. 
 | 
boolean | 
hasConflictingStoredEnchant(Enchantment ench)
Checks if the specified enchantment conflicts with any enchantments in
 this ItemMeta. 
 | 
boolean | 
hasStoredEnchant(Enchantment ench)
Checks for storage of the specified enchantment. 
 | 
boolean | 
hasStoredEnchants()
Checks for the existence of any stored enchantments. 
 | 
boolean | 
removeStoredEnchant(Enchantment ench)
Remove the specified stored enchantment from this item meta. 
 | 
addEnchant, getDisplayName, getEnchantLevel, getEnchants, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasLore, removeEnchant, setDisplayName, setLoreserializeboolean hasStoredEnchants()
boolean hasStoredEnchant(Enchantment ench)
ench - enchantment to checkint getStoredEnchantLevel(Enchantment ench)
ench - enchantment to checkMap<Enchantment,Integer> getStoredEnchants()
boolean addStoredEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction)
ench - Enchantment to storelevel - Level for the enchantmentignoreLevelRestriction - this indicates the enchantment should be
     applied, ignoring the level limitIllegalArgumentException - if enchantment is nullboolean removeStoredEnchant(Enchantment ench) throws IllegalArgumentException
ench - Enchantment to removeIllegalArgumentException - if enchantment is nullboolean hasConflictingStoredEnchant(Enchantment ench)
ench - enchantment to testEnchantmentStorageMeta clone()
Copyright © 2014. All rights reserved.