public class NBTSimpleInventoryItemStack extends SimpleInventory
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.item.ItemStack |
itemStack |
| Constructor and Description |
|---|
NBTSimpleInventoryItemStack(net.minecraft.item.ItemStack itemStack,
int size,
int stackLimit)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
markDirty() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tagName)
Read inventory data from the given NBT.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tagName)
Write inventory data to the given NBT.
|
closeInventory, decrStackSize, getInventoryName, getInventoryStackLimit, getItemStacks, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isItemValidForSlot, isUseableByPlayer, openInventory, readFromNBT, setInventorySlotContents, writeToNBTpublic NBTSimpleInventoryItemStack(net.minecraft.item.ItemStack itemStack,
int size,
int stackLimit)
itemStack - The item stack.size - The amount of slots in the inventory.stackLimit - The stack limit for each slot.public void markDirty()
markDirty in interface net.minecraft.inventory.IInventorymarkDirty in class SimpleInventorypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tagName)
SimpleInventoryreadFromNBT in class SimpleInventorydata - The NBT data containing inventory data.tagName - The NBT tag name where the info is located.public void writeToNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tagName)
SimpleInventorywriteToNBT in class SimpleInventorydata - The NBT tag that will receive inventory data.tagName - The NBT tag name where the info must be located.