public class ScriptableItemStack
extends cubex2.mods.customstuff2.engine.ScriptObject
| Constructor and Description |
|---|
ScriptableItemStack(net.minecraft.src.ItemStack stack,
cubex2.mods.customstuff2.engine.Mod mod,
org.mozilla.javascript.ScriptableObject scope) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDamage()
Gets the stack's damage value
|
int |
getId()
Gets the stack's itemID
|
int |
getStackSize()
Gets the stack's stacksize
|
void |
setDamage(int damage)
Sets the stack's damage value
|
void |
setId(int id)
Sets the stack's itemID
|
void |
setStackSize(int stackSize)
Sets the stack's stacksize
|
void |
setValues(int id,
int stacksize,
int damage)
Sets the stack's itemID, damage value and stack size
|
public ScriptableItemStack(net.minecraft.src.ItemStack stack,
cubex2.mods.customstuff2.engine.Mod mod,
org.mozilla.javascript.ScriptableObject scope)
public void setValues(int id,
int stacksize,
int damage)
id - The new itemIDstacksize - The new stack sizemeta - The new damage valuepublic void setId(int id)
id - The new itemIDpublic int getId()
public void setDamage(int damage)
damage - The new damage valuepublic int getDamage()
public void setStackSize(int stackSize)
stackSize - The new stacksizepublic int getStackSize()