public interface IMutableItemStack extends IItemStack
withTag, withAmount, damageItem etc.
will modify and return the ItemStack itself.
Use it with caution.| Modifier and Type | Method and Description |
|---|---|
boolean |
attemptDamageItem(int amount,
IPlayer player) |
IItemStack |
copy()
Returns a new immutable stack with the same properties.
|
void |
grow(int quality) |
void |
shrink(int quality) |
addEnchantment, amount, anyAmount, anyDamage, asBlock, canApplyAtEnchantingTable, canDestroy, canEditBlocks, canHarvestBlock, canPlaceOn, clearCustomName, createEntityItem, createEntityItem, createEntityItem, damageItem, getBlockHardness, getContainerItem, getDamage, getDefinition, getDisplayName, getEnchantments, getHarvestLevel, getHarvestLevel, getHasSubtypes, getHealAmount, getItemBurnTime, getItemEnchantability, getLiquid, getMatchTagExact, getMaxDamage, getMaxStackSize, getMetadata, getName, getOres, getRepairCost, getSaturation, getStrengthAgainstBlock, getTag, getToolClasses, hasContainerItem, hasCustomEntity, hasDisplayName, hasEffect, hasTag, isBeaconPayment, isDamageable, isEmpty, isFood, isItemBlock, isItemDamaged, isItemEnchantable, isItemEnchanted, isOnItemFrame, isStackable, mutable, percent, removeTag, setBlockHardness, setDisplayName, setMaxDamage, setMaxStackSize, setRepairCost, showsDurabilityBar, splitStack, updateTag, updateTag, weight, withAmount, withDamage, withDisplayName, withEmptyTag, withLore, withTag, withTagapplyNewTransform, applyTransform, contains, getAmount, getInternal, getItemArray, getItems, getLiquids, getMark, hasNewTransformers, hasTransformers, marked, matches, matches, matchesExact, only, or, toCommandString, transform, transformNewvoid shrink(int quality)
void grow(int quality)
boolean attemptDamageItem(int amount,
IPlayer player)
IItemStack copy()