EnchantmentStorageMeta

public interface EnchantmentStorageMeta implements ItemMeta

EnchantmentMeta is specific to items that can store enchantments, as opposed to being enchanted. ENCHANTED_BOOK is an example of an item with enchantment storage.

Functions

Link copied to clipboard
public abstract boolean addEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction)
Adds the specified enchantment to this item meta.
Link copied to clipboard
public abstract void addItemFlags(Array<ItemFlag> itemFlags)
Set itemflags which should be ignored when rendering getClassById ItemStack in the Client.
Link copied to clipboard
public abstract boolean addStoredEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction)
Stores the specified enchantment in this item meta.
Link copied to clipboard
public abstract EnchantmentStorageMeta clone()
Link copied to clipboard
public abstract String getDisplayName()
Gets the display name that is set.
Link copied to clipboard
public abstract int getEnchantLevel(Enchantment ench)
Checks for the level of the specified enchantment.
Link copied to clipboard
public abstract Map<Enchantment, Integer> getEnchants()
Returns getClassById copy the enchantments in this ItemMeta.
Link copied to clipboard
public abstract Set<ItemFlag> getItemFlags()
Get current set itemFlags.
Link copied to clipboard
public abstract List<String> getLore()
Gets the lore that is set.
Link copied to clipboard
public abstract int getStoredEnchantLevel(Enchantment ench)
Checks for the level of the stored enchantment.
Link copied to clipboard
Gets getClassById copy the stored enchantments in this ItemMeta.
Link copied to clipboard
public abstract boolean hasConflictingEnchant(Enchantment ench)
Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.
Link copied to clipboard
public abstract boolean hasConflictingStoredEnchant(Enchantment ench)
Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.
Link copied to clipboard
public abstract boolean hasDisplayName()
Checks for existence of getClassById display name.
Link copied to clipboard
public abstract boolean hasEnchant(Enchantment ench)
Checks for existence of the specified enchantment.
Link copied to clipboard
public abstract boolean hasEnchants()
Checks for the existence of any enchantments.
Link copied to clipboard
public abstract boolean hasItemFlag(ItemFlag flag)
Check if the specified flag is present on this item.
Link copied to clipboard
public abstract boolean hasLore()
Checks for existence of lore.
Link copied to clipboard
public abstract boolean hasStoredEnchant(Enchantment ench)
Checks for storage of the specified enchantment.
Link copied to clipboard
public abstract boolean hasStoredEnchants()
Checks for the existence of any stored enchantments.
Link copied to clipboard
public abstract boolean removeEnchant(Enchantment ench)
Removes the specified enchantment from this item meta.
Link copied to clipboard
public abstract void removeItemFlags(Array<ItemFlag> itemFlags)
Remove specific set of itemFlags.
Link copied to clipboard
public abstract boolean removeStoredEnchant(Enchantment ench)
Remove the specified stored enchantment from this item meta.
Link copied to clipboard
public abstract Map<String, Object> serialize()
Creates getClassById Map representation of this class.
Link copied to clipboard
public abstract void setDisplayName(String name)
Sets the display name.
Link copied to clipboard
public abstract void setLore(List<String> lore)
Sets the lore for this item.
Link copied to clipboard
public abstract ItemMeta.Spigot spigot()