public class ItemStackArrayValue extends AbstractValue
| Constructor and Description |
|---|
ItemStackArrayValue() |
ItemStackArrayValue(net.minecraft.item.ItemStack[] arr) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(Context context,
Arguments arguments)
This is called when the code running on a machine tries to index this
value.
|
java.lang.Object[] |
call(Context context,
Arguments arguments)
This is called when the code running on a machine tries to call this
value as a function.
|
java.lang.Object[] |
count(Context context,
Arguments arguments) |
java.lang.Object[] |
getAll(Context context,
Arguments arguments) |
void |
load(net.minecraft.nbt.NBTTagCompound nbt)
Restores a previous state of the object from the specified NBT tag.
|
java.lang.Object[] |
reset(Context context,
Arguments arguments) |
void |
save(net.minecraft.nbt.NBTTagCompound nbt)
Saves the current state of the object into the specified NBT tag.
|
java.lang.String |
toString() |
dispose, unapplypublic ItemStackArrayValue(net.minecraft.item.ItemStack[] arr)
public ItemStackArrayValue()
public java.lang.Object[] call(Context context, Arguments arguments)
Valuecall in interface Valuecall in class AbstractValuecontext - the context from which the method is called, usually the
instance of the computer running the script that made
the call.arguments - the arguments passed to the method.public java.lang.Object apply(Context context, Arguments arguments)
Valueapply in interface Valueapply in class AbstractValuecontext - the context from which the method is called, usually the
instance of the computer running the script that made
the call.arguments - the arguments passed to the method.public void load(net.minecraft.nbt.NBTTagCompound nbt)
Persistableload in interface Persistableload in class AbstractValuenbt - the tag to read the state from.public void save(net.minecraft.nbt.NBTTagCompound nbt)
PersistablePersistable.load(net.minecraft.nbt.NBTTagCompound) is called with that tag.save in interface Persistablesave in class AbstractValuenbt - the tag to save the state to.public java.lang.Object[] reset(Context context, Arguments arguments) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object[] count(Context context, Arguments arguments) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object[] getAll(Context context, Arguments arguments) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object