Uses of Interface
org.bukkit.inventory.meta.ItemMeta
| Package | Description |
|---|---|
| org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
| org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks. |
-
Uses of ItemMeta in org.bukkit.inventory
Methods in org.bukkit.inventory that return ItemMeta Modifier and Type Method Description ItemMetaItemFactory. asMetaFor(ItemMeta meta, ItemStack stack)Returns an appropriate item meta for the specified stack.ItemMetaItemFactory. asMetaFor(ItemMeta meta, Material material)Returns an appropriate item meta for the specified material.ItemMetaItemFactory. getItemMeta(Material material)This creates a new item meta for the material.ItemMetaItemStack. getItemMeta()Get a copy of this ItemStack'sItemMeta.Methods in org.bukkit.inventory with parameters of type ItemMeta Modifier and Type Method Description ItemMetaItemFactory. asMetaFor(ItemMeta meta, ItemStack stack)Returns an appropriate item meta for the specified stack.ItemMetaItemFactory. asMetaFor(ItemMeta meta, Material material)Returns an appropriate item meta for the specified material.booleanItemFactory. equals(ItemMeta meta1, ItemMeta meta2)This method is used to compare two item meta data objects.booleanItemFactory. isApplicable(ItemMeta meta, ItemStack stack)This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified ItemStack.booleanItemFactory. isApplicable(ItemMeta meta, Material material)This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified Material.booleanItemStack. setItemMeta(ItemMeta itemMeta)Set the ItemMeta of this ItemStack. -
Uses of ItemMeta in org.bukkit.inventory.meta
Subinterfaces of ItemMeta in org.bukkit.inventory.meta Modifier and Type Interface Description interfaceBannerMetainterfaceBlockStateMetainterfaceBookMetaRepresents a book (Material.BOOK_AND_QUILLorMaterial.WRITTEN_BOOK) that can have a title, an author, and pages.interfaceEnchantmentStorageMetaEnchantmentMeta is specific to items that can store enchantments, as opposed to being enchanted.interfaceFireworkEffectMetaRepresents a meta that can store a single FireworkEffect.interfaceFireworkMetaRepresents aMaterial.FIREWORKand its effects.interfaceLeatherArmorMetaRepresents leather armor (Material.LEATHER_BOOTS,Material.LEATHER_CHESTPLATE,Material.LEATHER_HELMET, orMaterial.LEATHER_LEGGINGS) that can be colored.interfaceMapMetaRepresents a map that can be scalable.interfacePotionMetaRepresents a potion (Material.POTION) that can have custom effects.interfaceSkullMetaRepresents a skull (Material.SKULL_ITEM) that can have an owner.Methods in org.bukkit.inventory.meta that return ItemMeta Modifier and Type Method Description ItemMetaItemMeta. clone()