Interface ForgeItemStack
- All Superinterfaces:
CommandStringDisplayable,IIngredient,IIngredientWithAmount,IItemStack
- All Known Implementing Classes:
MCItemStack,MCItemStackMutable
-
Field Summary
Fields inherited from interface com.blamejared.crafttweaker.api.item.IItemStack
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, CRAFTTWEAKER_DATA_KEY -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanPerformAction(net.minecraftforge.common.ToolAction action) Deprecated, for removal: This API element is subject to removal in a future version.Method has been moved to an expansion, so it exists in IItemStack for scripters, and ExpandIItemStackForge for modders.default intdefault intgetBurnTime(IRecipeManager manager) default IItemStackgetRemainingItem(IItemStack stack) When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g.default voidsetBurnTime(int time, IRecipeManager manager) Sets the burn time of this ingredient, for use in the furnace and other machinesMethods inherited from interface com.blamejared.crafttweaker.api.ingredient.IIngredient
addGlobalAttributeModifier, addGlobalAttributeModifier, addGlobalAttributeModifier, addShiftTooltip, addTooltip, anyDamage, asMapData, clearTooltip, contains, getItems, matches, modifyShiftTooltip, modifyTooltip, mul, only, onlyDamaged, onlyDamagedAtLeast, onlyDamagedAtMost, onlyIf, or, removeGlobalAttribute, removeGlobalAttributeModifier, removeGlobalAttributeModifier, removeTooltip, reuse, setBurnTime, transform, transformCustom, transformDamage, transformReplaceMethods inherited from interface com.blamejared.crafttweaker.api.item.IItemStack
asIData, asIIngredientWithAmount, asImmutable, asItemLike, asMutable, asVanillaIngredient, asWeightedItemStack, copy, getAmount, getAttributes, getBaseRepairCost, getCommandString, getDamage, getDefinition, getDescriptionId, getDisplayName, getEnchantmentLevel, getEnchantments, getFood, getHoverName, getImmutableInternal, getIngredient, getInternal, getMaxDamage, getMaxStackSize, getOrCreateTag, getOwner, getRarity, getRegistryName, getTag, getUseDuration, grow, hasDisplayName, hasFoil, hasTag, isDamageableItem, isDamaged, isEdible, isEmpty, isEnchantable, isEnchanted, isFireResistant, isImmutable, isMutable, isStackable, matches, modify, percent, removeEnchantment, resetHoverName, setAmount, setEnchantments, setFireResistant, setFood, setMaxDamage, setMaxStackSize, setRarity, shrink, useOnRelease, withAttributeModifier, withAttributeModifier, withAttributeModifier, withDamage, withDisplayName, withEnchantment, withLore, withoutTag, withTag
-
Method Details
-
setBurnTime
Sets the burn time of this ingredient, for use in the furnace and other machines- Parameters:
time- the new burn time- DocParam:
- time 500
-
getBurnTime
default int getBurnTime()- Specified by:
getBurnTimein interfaceIItemStack
-
getBurnTime
-
getRemainingItem
Description copied from interface:IIngredientWhen this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in Crafting Table recipes.- Specified by:
getRemainingItemin interfaceIIngredient- Parameters:
stack- The stack to provide for this ingredient.
-
canPerformAction
@Deprecated(forRemoval=true) default boolean canPerformAction(net.minecraftforge.common.ToolAction action) Deprecated, for removal: This API element is subject to removal in a future version.Method has been moved to an expansion, so it exists in IItemStack for scripters, and ExpandIItemStackForge for modders.Checks if this item can perform the given ToolAction.- Parameters:
action- The action to perform.- Returns:
- True if it can perform the action, false otherwise.
-