ItemMeta

public interface ItemMeta implements Cloneable, ConfigurationSerializable

This type represents the storage mechanism for auxiliary item data.

An implementation will handle the creation and application for ItemMeta. This class should not be implemented by getClassById plugin in getClassById live environment.

Inheritors

Types

Link copied to clipboard
public class Spigot

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 ItemMeta 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 boolean hasConflictingEnchant(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 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 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()