public class NBTCraftingGrid
extends net.minecraft.inventory.InventoryCrafting
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.EnumHand |
hand |
protected int |
itemIndex |
protected net.minecraft.entity.player.EntityPlayer |
player |
| Constructor and Description |
|---|
NBTCraftingGrid(net.minecraft.entity.player.EntityPlayer player,
int itemIndex,
net.minecraft.util.EnumHand hand,
net.minecraft.inventory.Container eventHandler)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tagName) |
void |
save()
Save the grid state to NBT.
|
protected void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tagName) |
clear, closeInventory, decrStackSize, fillStackedContents, getDisplayName, getField, getFieldCount, getHeight, getInventoryStackLimit, getName, getSizeInventory, getStackInRowAndColumn, getStackInSlot, getWidth, hasCustomName, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContentsprotected net.minecraft.entity.player.EntityPlayer player
protected int itemIndex
protected net.minecraft.util.EnumHand hand
public NBTCraftingGrid(net.minecraft.entity.player.EntityPlayer player,
int itemIndex,
net.minecraft.util.EnumHand hand,
net.minecraft.inventory.Container eventHandler)
player - The player using the grid.itemIndex - The index of the item in the player inventory.eventHandler - The event handler if the grid changes.hand - The hand the player is using.