MutableItemStack

Link to mutableitemstack

A Mutable Item Stack is a special IItemStack object that can only be retrieved from ICTPlayers.
That means all of IItemStack's methods, and those of IIngredients!

패키지 임포트하기

Link to 패키지-임포트하기

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.MutableItemStack;

A Stack's count is the number of items in that stack!

ZenMethodParameter TypeDescription
ZenMethod
setCount(count)
Parameter Type
int
Description
Sets the stack's count to the count provided
ZenMethod
grow(count)
Parameter Type
int
Description
Increases the stack's count by the count provided
ZenMethod
shrink(count)
Parameter Type
int
Description
Decreases the stack's count by the count provided

damage(int amount, ICTPlayer player)

Parameters:

  • int amount → The amount of Damage points to give the item
  • ICTPlayer player → the player/Entity damaging the item