public class MCItemStack
extends java.lang.Object
implements crafttweaker.api.item.IItemStack
| Modifier and Type | Field and Description |
|---|---|
static crafttweaker.api.item.IItemStack |
EMPTY |
protected boolean |
matchTagExact |
protected net.minecraft.item.ItemStack |
origin
ItemStack that not copied, only used in MCMutableItemStack
|
protected crafttweaker.api.data.IData |
tag |
| Modifier | Constructor and Description |
|---|---|
|
MCItemStack(net.minecraft.item.ItemStack itemStack) |
|
MCItemStack(net.minecraft.item.ItemStack itemStack,
boolean wildcardSize) |
protected |
MCItemStack(net.minecraft.item.ItemStack itemStack,
crafttweaker.api.data.IData tag) |
protected |
MCItemStack(net.minecraft.item.ItemStack itemStack,
crafttweaker.api.data.IData tag,
boolean wildcardSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEnchantment(crafttweaker.api.enchantments.IEnchantment enchantment) |
crafttweaker.api.item.IItemStack |
amount(int amount) |
crafttweaker.api.item.IItemStack |
anyAmount() |
crafttweaker.api.item.IIngredient |
anyDamage() |
crafttweaker.api.item.IItemStack |
applyNewTransform(crafttweaker.api.item.IItemStack item) |
crafttweaker.api.item.IItemStack |
applyTransform(crafttweaker.api.item.IItemStack item,
crafttweaker.api.player.IPlayer byPlayer) |
crafttweaker.api.block.IBlock |
asBlock() |
boolean |
canApplyAtEnchantingTable(crafttweaker.api.enchantments.IEnchantmentDefinition enchantment) |
boolean |
canDestroy(crafttweaker.api.block.IBlockDefinition block) |
boolean |
canEditBlocks() |
boolean |
canHarvestBlock(crafttweaker.api.block.IBlockState block) |
boolean |
canPlaceOn(crafttweaker.api.block.IBlockDefinition block) |
void |
clearCustomName() |
boolean |
contains(crafttweaker.api.item.IIngredient ingredient) |
crafttweaker.api.entity.IEntityItem |
createEntityItem(crafttweaker.api.world.IWorld world,
float x,
float y,
float z) |
crafttweaker.api.entity.IEntityItem |
createEntityItem(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos pos) |
crafttweaker.api.entity.IEntityItem |
createEntityItem(crafttweaker.api.world.IWorld world,
int x,
int y,
int z) |
static MCItemStack |
createNonCopy(net.minecraft.item.ItemStack itemStack) |
void |
damageItem(int amount,
crafttweaker.api.entity.IEntity entity) |
boolean |
equals(java.lang.Object obj) |
int |
getAmount() |
float |
getBlockHardness() |
crafttweaker.api.item.IItemStack |
getContainerItem() |
int |
getDamage() |
crafttweaker.api.item.IItemDefinition |
getDefinition() |
java.lang.String |
getDisplayName() |
java.util.List<crafttweaker.api.enchantments.IEnchantment> |
getEnchantments() |
int |
getHarvestLevel(java.lang.String toolClass) |
int |
getHarvestLevel(java.lang.String toolClass,
crafttweaker.api.player.IPlayer player,
crafttweaker.api.block.IBlockState blockState) |
boolean |
getHasSubtypes() |
int |
getHealAmount() |
java.lang.Object |
getInternal() |
crafttweaker.api.item.IItemStack[] |
getItemArray() |
int |
getItemBurnTime() |
int |
getItemEnchantability() |
java.util.List<crafttweaker.api.item.IItemStack> |
getItems() |
crafttweaker.api.liquid.ILiquidStack |
getLiquid() |
java.util.List<crafttweaker.api.liquid.ILiquidStack> |
getLiquids() |
java.lang.String |
getMark() |
boolean |
getMatchTagExact() |
int |
getMaxDamage() |
int |
getMaxStackSize() |
int |
getMetadata() |
java.lang.String |
getName() |
java.util.List<crafttweaker.api.oredict.IOreDictEntry> |
getOres() |
int |
getRepairCost() |
float |
getSaturation() |
float |
getStrengthAgainstBlock(crafttweaker.api.block.IBlockState blockState) |
crafttweaker.api.data.IData |
getTag() |
java.util.List<java.lang.String> |
getToolClasses() |
boolean |
hasContainerItem() |
boolean |
hasCustomEntity() |
boolean |
hasDisplayName() |
boolean |
hasEffect() |
int |
hashCode() |
boolean |
hasNewTransformers() |
boolean |
hasTag() |
boolean |
hasTransformers() |
boolean |
isBeaconPayment() |
boolean |
isDamageable() |
boolean |
isEmpty() |
boolean |
isFood() |
boolean |
isItemBlock() |
boolean |
isItemDamaged() |
boolean |
isItemEnchantable() |
boolean |
isItemEnchanted() |
boolean |
isOnItemFrame() |
boolean |
isStackable() |
crafttweaker.api.item.IIngredient |
marked(java.lang.String mark) |
boolean |
matches(crafttweaker.api.item.IItemStack item) |
boolean |
matches(crafttweaker.api.liquid.ILiquidStack liquid) |
boolean |
matchesExact(crafttweaker.api.item.IItemStack item) |
crafttweaker.api.item.IMutableItemStack |
mutable() |
crafttweaker.api.item.IIngredient |
only(crafttweaker.api.item.IItemCondition condition) |
crafttweaker.api.item.IIngredient |
or(crafttweaker.api.item.IIngredient ingredient) |
crafttweaker.api.item.WeightedItemStack |
percent(float chance) |
crafttweaker.api.item.IItemStack |
removeTag(java.lang.String tag) |
void |
setBlockHardness(float hardness) |
void |
setDisplayName(java.lang.String name) |
void |
setMaxDamage(int damage) |
void |
setMaxStackSize(int size) |
void |
setRepairCost(int repairCost) |
boolean |
showsDurabilityBar() |
crafttweaker.api.item.IItemStack |
splitStack(int amount) |
java.lang.String |
toCommandString() |
java.lang.String |
toString() |
crafttweaker.api.item.IIngredient |
transform(crafttweaker.api.item.IItemTransformer transformer) |
crafttweaker.api.item.IIngredient |
transformNew(crafttweaker.api.item.IItemTransformerNew transformer) |
crafttweaker.api.item.IItemStack |
updateTag(crafttweaker.api.data.IData tagUpdate) |
crafttweaker.api.item.IItemStack |
updateTag(crafttweaker.api.data.IData tagUpdate,
boolean matchTagExact) |
crafttweaker.api.item.WeightedItemStack |
weight(float chance) |
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) |
crafttweaker.api.item.IItemStack |
withTag(crafttweaker.api.data.IData tag,
boolean matchTagExact) |
public static final crafttweaker.api.item.IItemStack EMPTY
protected final net.minecraft.item.ItemStack origin
protected boolean matchTagExact
protected crafttweaker.api.data.IData tag
public MCItemStack(net.minecraft.item.ItemStack itemStack)
public MCItemStack(net.minecraft.item.ItemStack itemStack,
boolean wildcardSize)
protected MCItemStack(net.minecraft.item.ItemStack itemStack,
crafttweaker.api.data.IData tag)
protected MCItemStack(net.minecraft.item.ItemStack itemStack,
crafttweaker.api.data.IData tag,
boolean wildcardSize)
public static MCItemStack createNonCopy(net.minecraft.item.ItemStack itemStack)
public crafttweaker.api.item.IItemDefinition getDefinition()
getDefinition in interface crafttweaker.api.item.IItemStackpublic boolean isItemBlock()
isItemBlock in interface crafttweaker.api.item.IItemStackpublic java.lang.String getName()
getName in interface crafttweaker.api.item.IItemStackpublic java.lang.String getDisplayName()
getDisplayName in interface crafttweaker.api.item.IItemStackpublic void setDisplayName(java.lang.String name)
setDisplayName in interface crafttweaker.api.item.IItemStackpublic int getMaxStackSize()
getMaxStackSize in interface crafttweaker.api.item.IItemStackpublic void setMaxStackSize(int size)
setMaxStackSize in interface crafttweaker.api.item.IItemStackpublic float getBlockHardness()
getBlockHardness in interface crafttweaker.api.item.IItemStackpublic void setBlockHardness(float hardness)
setBlockHardness in interface crafttweaker.api.item.IItemStackpublic int getDamage()
getDamage in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.data.IData getTag()
getTag in interface crafttweaker.api.item.IItemStackpublic int getMaxDamage()
getMaxDamage in interface crafttweaker.api.item.IItemStackpublic void setMaxDamage(int damage)
setMaxDamage in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.liquid.ILiquidStack getLiquid()
getLiquid in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IIngredient anyDamage()
anyDamage in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withDamage(int damage)
withDamage in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack anyAmount()
anyAmount in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withAmount(int amount)
withAmount in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withTag(crafttweaker.api.data.IData tag,
boolean matchTagExact)
withTag in interface crafttweaker.api.item.IItemStackpublic boolean getMatchTagExact()
getMatchTagExact in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withTag(crafttweaker.api.data.IData tag)
withTag in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack updateTag(crafttweaker.api.data.IData tagUpdate)
updateTag in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withEmptyTag()
withEmptyTag in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack updateTag(crafttweaker.api.data.IData tagUpdate,
boolean matchTagExact)
updateTag in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack removeTag(java.lang.String tag)
removeTag in interface crafttweaker.api.item.IItemStackpublic java.lang.String getMark()
getMark in interface crafttweaker.api.item.IIngredientpublic int getAmount()
getAmount in interface crafttweaker.api.item.IIngredientpublic java.util.List<crafttweaker.api.item.IItemStack> getItems()
getItems in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IItemStack[] getItemArray()
getItemArray in interface crafttweaker.api.item.IIngredientpublic java.util.List<crafttweaker.api.liquid.ILiquidStack> getLiquids()
getLiquids in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IItemStack amount(int amount)
amount in interface crafttweaker.api.item.IIngredientamount in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.WeightedItemStack percent(float chance)
percent in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.WeightedItemStack weight(float chance)
weight in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IIngredient transformNew(crafttweaker.api.item.IItemTransformerNew transformer)
transformNew in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IIngredient only(crafttweaker.api.item.IItemCondition condition)
only in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IIngredient marked(java.lang.String mark)
marked in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IIngredient or(crafttweaker.api.item.IIngredient ingredient)
or in interface crafttweaker.api.item.IIngredientpublic boolean matches(crafttweaker.api.item.IItemStack item)
matches in interface crafttweaker.api.item.IIngredientpublic boolean matchesExact(crafttweaker.api.item.IItemStack item)
matchesExact in interface crafttweaker.api.item.IIngredientpublic boolean matches(crafttweaker.api.liquid.ILiquidStack liquid)
matches in interface crafttweaker.api.item.IIngredientpublic boolean contains(crafttweaker.api.item.IIngredient ingredient)
contains in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IItemStack applyTransform(crafttweaker.api.item.IItemStack item,
crafttweaker.api.player.IPlayer byPlayer)
applyTransform in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IItemStack applyNewTransform(crafttweaker.api.item.IItemStack item)
applyNewTransform in interface crafttweaker.api.item.IIngredientpublic boolean hasNewTransformers()
hasNewTransformers in interface crafttweaker.api.item.IIngredientpublic boolean hasTransformers()
hasTransformers in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.item.IIngredient transform(crafttweaker.api.item.IItemTransformer transformer)
transform in interface crafttweaker.api.item.IIngredientpublic java.lang.Object getInternal()
getInternal in interface crafttweaker.api.item.IIngredientpublic crafttweaker.api.block.IBlock asBlock()
asBlock in interface crafttweaker.api.item.IItemStackpublic java.util.List<crafttweaker.api.oredict.IOreDictEntry> getOres()
getOres in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withDisplayName(java.lang.String name)
withDisplayName in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack withLore(java.lang.String[] lore)
withLore in interface crafttweaker.api.item.IItemStackpublic java.util.List<java.lang.String> getToolClasses()
getToolClasses in interface crafttweaker.api.item.IItemStackpublic int getItemEnchantability()
getItemEnchantability in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack getContainerItem()
getContainerItem in interface crafttweaker.api.item.IItemStackpublic boolean hasContainerItem()
hasContainerItem in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.entity.IEntityItem createEntityItem(crafttweaker.api.world.IWorld world,
int x,
int y,
int z)
createEntityItem in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.entity.IEntityItem createEntityItem(crafttweaker.api.world.IWorld world,
float x,
float y,
float z)
createEntityItem in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.entity.IEntityItem createEntityItem(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos pos)
createEntityItem in interface crafttweaker.api.item.IItemStackpublic boolean isBeaconPayment()
isBeaconPayment in interface crafttweaker.api.item.IItemStackpublic boolean canPlaceOn(crafttweaker.api.block.IBlockDefinition block)
canPlaceOn in interface crafttweaker.api.item.IItemStackpublic boolean canDestroy(crafttweaker.api.block.IBlockDefinition block)
canDestroy in interface crafttweaker.api.item.IItemStackpublic boolean canHarvestBlock(crafttweaker.api.block.IBlockState block)
canHarvestBlock in interface crafttweaker.api.item.IItemStackpublic int getRepairCost()
getRepairCost in interface crafttweaker.api.item.IItemStackpublic void setRepairCost(int repairCost)
setRepairCost in interface crafttweaker.api.item.IItemStackpublic boolean canEditBlocks()
canEditBlocks in interface crafttweaker.api.item.IItemStackpublic boolean isOnItemFrame()
isOnItemFrame in interface crafttweaker.api.item.IItemStackpublic boolean isItemEnchanted()
isItemEnchanted in interface crafttweaker.api.item.IItemStackpublic boolean isItemDamaged()
isItemDamaged in interface crafttweaker.api.item.IItemStackpublic boolean isDamageable()
isDamageable in interface crafttweaker.api.item.IItemStackpublic boolean isStackable()
isStackable in interface crafttweaker.api.item.IItemStackpublic void addEnchantment(crafttweaker.api.enchantments.IEnchantment enchantment)
addEnchantment in interface crafttweaker.api.item.IItemStackpublic boolean canApplyAtEnchantingTable(crafttweaker.api.enchantments.IEnchantmentDefinition enchantment)
canApplyAtEnchantingTable in interface crafttweaker.api.item.IItemStackpublic java.util.List<crafttweaker.api.enchantments.IEnchantment> getEnchantments()
getEnchantments in interface crafttweaker.api.item.IItemStackpublic boolean isItemEnchantable()
isItemEnchantable in interface crafttweaker.api.item.IItemStackpublic boolean hasEffect()
hasEffect in interface crafttweaker.api.item.IItemStackpublic boolean hasDisplayName()
hasDisplayName in interface crafttweaker.api.item.IItemStackpublic void clearCustomName()
clearCustomName in interface crafttweaker.api.item.IItemStackpublic boolean hasTag()
hasTag in interface crafttweaker.api.item.IItemStackpublic void damageItem(int amount,
crafttweaker.api.entity.IEntity entity)
damageItem in interface crafttweaker.api.item.IItemStackpublic int getMetadata()
getMetadata in interface crafttweaker.api.item.IItemStackpublic boolean getHasSubtypes()
getHasSubtypes in interface crafttweaker.api.item.IItemStackpublic float getStrengthAgainstBlock(crafttweaker.api.block.IBlockState blockState)
getStrengthAgainstBlock in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IItemStack splitStack(int amount)
splitStack in interface crafttweaker.api.item.IItemStackpublic boolean isEmpty()
isEmpty in interface crafttweaker.api.item.IItemStackpublic int getItemBurnTime()
getItemBurnTime in interface crafttweaker.api.item.IItemStackpublic boolean showsDurabilityBar()
showsDurabilityBar in interface crafttweaker.api.item.IItemStackpublic boolean hasCustomEntity()
hasCustomEntity in interface crafttweaker.api.item.IItemStackpublic crafttweaker.api.item.IMutableItemStack mutable()
mutable in interface crafttweaker.api.item.IItemStackpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toCommandString()
toCommandString in interface crafttweaker.api.item.IIngredientpublic boolean isFood()
isFood in interface crafttweaker.api.item.IItemStackpublic float getSaturation()
getSaturation in interface crafttweaker.api.item.IItemStackpublic int getHealAmount()
getHealAmount in interface crafttweaker.api.item.IItemStackpublic int getHarvestLevel(java.lang.String toolClass)
getHarvestLevel in interface crafttweaker.api.item.IItemStackpublic int getHarvestLevel(java.lang.String toolClass,
crafttweaker.api.player.IPlayer player,
crafttweaker.api.block.IBlockState blockState)
getHarvestLevel in interface crafttweaker.api.item.IItemStack