Appearance
ItemStackData
Represents an itemstack.
Constructor:
PluginAPI.contructors.ItemStack({itemId: Integer, amount: Integer, itemDamage: Integer})
Has the following properties:
amount : IntegeranimationsToGo : IntegeritemId : IntegeritemDamage : IntegeritemFrame : [EntityData](EntityData.md)(If existing)canDestroyCacheBlock : BlockDatacanDestroyCacheResult : BooleancanPlaceOnCacheBlock : BlockDatacanPlaceOnCacheResult : Boolean
Has the following methods:
getItem() : ItemDatagetMaxStackSize() : IntegerisStackable() : BooleanisItemStackDamageable() : BooleangetHasSubtypes() : BooleanisItemDamaged() : BooleangetItemDamage() : IntegergetMetadata() : IntegersetItemDamage({meta: Integer}) : voidgetMaxDamage() : Integercopy() : ItemStackDatagetUnlocalizedName() : StringtoString() : StringgetMaxItemUseDuration() : IntegergetDisplayName() : StringsetDisplayName({displayName: String}) : ItemStackDataclearCustomName() : voidhasDisplayName() : BooleanhasEffect() : BooleanisItemEnchantable() : BooleanaddEnchantment({ench: EnchantmentRef, level: Integer}) : voidisItemEnchanted() : BooleancanEditBlocks() : BooleanisOnItemFrame() : BooleangetRepairCost() : IntegersetRepairCost({cost: Integer}) : voidsetItem(newItem: ItemRef) : voidcanDestroy({blockId: Integer}) : BooleancanPlaceOn({blockId: Integer}) : BooleantoNBT() : StringfromNBT({nbt: String}) : voidgetLore() : String[]setLore({lore: String[]}) : void