public class MCMutableItemStack extends MCItemStack implements crafttweaker.api.item.IMutableItemStack
EMPTY, matchTagExact, origin, tag| Constructor and Description |
|---|
MCMutableItemStack(net.minecraft.item.ItemStack itemStack) |
MCMutableItemStack(net.minecraft.item.ItemStack itemStack,
boolean wildcardSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attemptDamageItem(int amount,
crafttweaker.api.player.IPlayer player) |
crafttweaker.api.item.IItemStack |
copy() |
void |
damageItem(int amount,
crafttweaker.api.entity.IEntity entity) |
java.lang.Object |
getInternal() |
void |
grow(int quality) |
crafttweaker.api.item.IMutableItemStack |
mutable() |
crafttweaker.api.item.IItemStack |
removeTag(java.lang.String tag) |
void |
shrink(int quality) |
crafttweaker.api.item.IItemStack |
updateTag(crafttweaker.api.data.IData tagUpdate,
boolean matchTagExact) |
crafttweaker.api.item.IItemStack |
withAmount(int amount) |
crafttweaker.api.item.IItemStack |
withDamage(int damage) |
crafttweaker.api.item.IItemStack |
withDisplayName(java.lang.String name) |
crafttweaker.api.item.IItemStack |
withEmptyTag() |
crafttweaker.api.item.IItemStack |
withLore(java.lang.String[] lore) |
crafttweaker.api.item.IItemStack |
withTag(crafttweaker.api.data.IData tag,
boolean matchTagExact) |
addEnchantment, amount, anyAmount, anyDamage, applyNewTransform, applyTransform, asBlock, canApplyAtEnchantingTable, canDestroy, canEditBlocks, canHarvestBlock, canPlaceOn, clearCustomName, contains, createEntityItem, createEntityItem, createEntityItem, createNonCopy, equals, getAmount, getBlockHardness, getContainerItem, getDamage, getDefinition, getDisplayName, getEnchantments, getHarvestLevel, getHarvestLevel, getHasSubtypes, getHealAmount, getItemArray, getItemBurnTime, getItemEnchantability, getItems, getLiquid, getLiquids, getMark, getMatchTagExact, getMaxDamage, getMaxStackSize, getMetadata, getName, getOres, getRepairCost, getSaturation, getStrengthAgainstBlock, getTag, getToolClasses, hasContainerItem, hasCustomEntity, hasDisplayName, hasEffect, hashCode, hasNewTransformers, hasTag, hasTransformers, isBeaconPayment, isDamageable, isEmpty, isFood, isItemBlock, isItemDamaged, isItemEnchantable, isItemEnchanted, isOnItemFrame, isStackable, marked, matches, matches, matchesExact, only, or, percent, setBlockHardness, setDisplayName, setMaxDamage, setMaxStackSize, setRepairCost, showsDurabilityBar, splitStack, toCommandString, toString, transform, transformNew, updateTag, weight, withTagclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddEnchantment, amount, anyAmount, anyDamage, asBlock, canApplyAtEnchantingTable, canDestroy, canEditBlocks, canHarvestBlock, canPlaceOn, clearCustomName, createEntityItem, createEntityItem, createEntityItem, 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, percent, setBlockHardness, setDisplayName, setMaxDamage, setMaxStackSize, setRepairCost, showsDurabilityBar, splitStack, updateTag, weight, withTagpublic MCMutableItemStack(net.minecraft.item.ItemStack itemStack)
public MCMutableItemStack(net.minecraft.item.ItemStack itemStack,
boolean wildcardSize)
public void shrink(int quality)
shrink in interface crafttweaker.api.item.IMutableItemStackpublic void grow(int quality)
grow in interface crafttweaker.api.item.IMutableItemStackpublic boolean attemptDamageItem(int amount,
crafttweaker.api.player.IPlayer player)
attemptDamageItem in interface crafttweaker.api.item.IMutableItemStackpublic crafttweaker.api.item.IItemStack withTag(crafttweaker.api.data.IData tag,
boolean matchTagExact)
withTag in interface crafttweaker.api.item.IItemStackwithTag in class MCItemStackpublic crafttweaker.api.item.IItemStack updateTag(crafttweaker.api.data.IData tagUpdate,
boolean matchTagExact)
updateTag in interface crafttweaker.api.item.IItemStackupdateTag in class MCItemStackpublic crafttweaker.api.item.IItemStack withEmptyTag()
withEmptyTag in interface crafttweaker.api.item.IItemStackwithEmptyTag in class MCItemStackpublic crafttweaker.api.item.IItemStack removeTag(java.lang.String tag)
removeTag in interface crafttweaker.api.item.IItemStackremoveTag in class MCItemStackpublic crafttweaker.api.item.IItemStack withAmount(int amount)
withAmount in interface crafttweaker.api.item.IItemStackwithAmount in class MCItemStackpublic crafttweaker.api.item.IItemStack withDamage(int damage)
withDamage in interface crafttweaker.api.item.IItemStackwithDamage in class MCItemStackpublic crafttweaker.api.item.IItemStack withDisplayName(java.lang.String name)
withDisplayName in interface crafttweaker.api.item.IItemStackwithDisplayName in class MCItemStackpublic crafttweaker.api.item.IItemStack withLore(java.lang.String[] lore)
withLore in interface crafttweaker.api.item.IItemStackwithLore in class MCItemStackpublic crafttweaker.api.item.IItemStack copy()
copy in interface crafttweaker.api.item.IMutableItemStackpublic crafttweaker.api.item.IMutableItemStack mutable()
mutable in interface crafttweaker.api.item.IItemStackmutable in class MCItemStackpublic void damageItem(int amount,
crafttweaker.api.entity.IEntity entity)
damageItem in interface crafttweaker.api.item.IItemStackdamageItem in class MCItemStackpublic java.lang.Object getInternal()
getInternal in interface crafttweaker.api.item.IIngredientgetInternal in class MCItemStack