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 . |
Modifier and Type | Method and Description |
---|---|
ItemMeta |
ItemFactory.asMetaFor(ItemMeta meta,
ItemStack stack)
Returns an appropriate item meta for the specified stack.
|
ItemMeta |
ItemFactory.asMetaFor(ItemMeta meta,
Material material)
Returns an appropriate item meta for the specified material.
|
ItemMeta |
ItemStack.getItemMeta()
Get a copy of this ItemStack's
ItemMeta . |
ItemMeta |
ItemFactory.getItemMeta(Material material)
This creates a new item meta for the material.
|
Modifier and Type | Method and Description |
---|---|
ItemMeta |
ItemFactory.asMetaFor(ItemMeta meta,
ItemStack stack)
Returns an appropriate item meta for the specified stack.
|
ItemMeta |
ItemFactory.asMetaFor(ItemMeta meta,
Material material)
Returns an appropriate item meta for the specified material.
|
boolean |
ItemFactory.equals(ItemMeta meta1,
ItemMeta meta2)
This method is used to compare two item meta data objects.
|
boolean |
ItemFactory.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.
|
boolean |
ItemFactory.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.
|
boolean |
ItemStack.setItemMeta(ItemMeta itemMeta)
Set the ItemMeta of this ItemStack.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BannerMeta |
interface |
BlockStateMeta |
interface |
BookMeta
Represents a book (
Material.BOOK_AND_QUILL or Material.WRITTEN_BOOK ) that can have a title, an author, and pages. |
interface |
EnchantmentStorageMeta
EnchantmentMeta is specific to items that can store enchantments, as
opposed to being enchanted.
|
interface |
FireworkEffectMeta
Represents a meta that can store a single FireworkEffect.
|
interface |
FireworkMeta
Represents a
Material.FIREWORK and its effects. |
interface |
LeatherArmorMeta
Represents leather armor (
Material.LEATHER_BOOTS , Material.LEATHER_CHESTPLATE , Material.LEATHER_HELMET , or Material.LEATHER_LEGGINGS ) that can be colored. |
interface |
MapMeta
Represents a map that can be scalable.
|
interface |
PotionMeta
Represents a potion (
Material.POTION ) that can have custom effects. |
interface |
SkullMeta
Represents a skull (
Material.SKULL_ITEM ) that can have an owner. |
Modifier and Type | Method and Description |
---|---|
ItemMeta |
ItemMeta.clone() |
Copyright © 2016. All rights reserved.