public abstract class Container
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
crafters |
java.util.List |
inventoryItemStacks |
java.util.List |
inventorySlots |
int |
windowId |
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
void |
addCraftingToCrafters(ICrafting listener) |
protected Slot |
addSlotToContainer(Slot slotIn) |
static int |
calcRedstone(TileEntity te) |
static int |
calcRedstoneFromInventory(IInventory inv) |
static boolean |
canAddItemToSlot(Slot slotIn,
ItemStack stack,
boolean stackSizeMatters) |
boolean |
canDragIntoSlot(Slot p_94531_1_) |
abstract boolean |
canInteractWith(EntityPlayer playerIn) |
boolean |
canMergeSlot(ItemStack p_94530_1_,
Slot p_94530_2_) |
static void |
computeStackSize(java.util.Set p_94525_0_,
int p_94525_1_,
ItemStack p_94525_2_,
int p_94525_3_) |
void |
detectAndSendChanges() |
boolean |
enchantItem(EntityPlayer playerIn,
int id) |
static int |
extractDragMode(int p_94529_0_) |
static boolean |
func_180610_a(int p_180610_0_,
EntityPlayer p_180610_1_) |
static int |
func_94534_d(int p_94534_0_,
int p_94534_1_) |
static int |
getDragEvent(int p_94532_0_) |
java.util.List |
getInventory() |
short |
getNextTransactionID(InventoryPlayer p_75136_1_) |
Slot |
getSlot(int slotId) |
Slot |
getSlotFromInventory(IInventory inv,
int slotIn) |
boolean |
isPlayerNotUsingContainer(EntityPlayer p_75129_1_) |
protected boolean |
mergeItemStack(ItemStack stack,
int startIndex,
int endIndex,
boolean useEndIndex) |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
void |
putStackInSlot(int p_75141_1_,
ItemStack p_75141_2_) |
void |
putStacksInSlots(ItemStack[] p_75131_1_) |
void |
removeCraftingFromCrafters(ICrafting listeners) |
protected void |
resetDrag() |
protected void |
retrySlotClick(int p_75133_1_,
int p_75133_2_,
boolean p_75133_3_,
EntityPlayer p_75133_4_) |
void |
setPlayerIsPresent(EntityPlayer p_75128_1_,
boolean p_75128_2_) |
ItemStack |
slotClick(int slotId,
int clickedButton,
int mode,
EntityPlayer playerIn) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
void |
updateProgressBar(int id,
int data) |
public java.util.List inventoryItemStacks
public java.util.List inventorySlots
public int windowId
protected java.util.List crafters
public void addCraftingToCrafters(ICrafting listener)
public java.util.List getInventory()
public void removeCraftingFromCrafters(ICrafting listeners)
public void detectAndSendChanges()
public boolean enchantItem(EntityPlayer playerIn, int id)
public Slot getSlotFromInventory(IInventory inv, int slotIn)
public Slot getSlot(int slotId)
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
public ItemStack slotClick(int slotId, int clickedButton, int mode, EntityPlayer playerIn)
protected void retrySlotClick(int p_75133_1_, int p_75133_2_, boolean p_75133_3_, EntityPlayer p_75133_4_)
public void onContainerClosed(EntityPlayer playerIn)
public void onCraftMatrixChanged(IInventory inventoryIn)
public void putStackInSlot(int p_75141_1_, ItemStack p_75141_2_)
public void putStacksInSlots(ItemStack[] p_75131_1_)
public void updateProgressBar(int id, int data)
public short getNextTransactionID(InventoryPlayer p_75136_1_)
public boolean isPlayerNotUsingContainer(EntityPlayer p_75129_1_)
public void setPlayerIsPresent(EntityPlayer p_75128_1_, boolean p_75128_2_)
public abstract boolean canInteractWith(EntityPlayer playerIn)
protected boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean useEndIndex)
public static int extractDragMode(int p_94529_0_)
public static int getDragEvent(int p_94532_0_)
public static int func_94534_d(int p_94534_0_, int p_94534_1_)
public static boolean func_180610_a(int p_180610_0_, EntityPlayer p_180610_1_)
protected void resetDrag()
public static boolean canAddItemToSlot(Slot slotIn, ItemStack stack, boolean stackSizeMatters)
public static void computeStackSize(java.util.Set p_94525_0_, int p_94525_1_, ItemStack p_94525_2_, int p_94525_3_)
public boolean canDragIntoSlot(Slot p_94531_1_)
public static int calcRedstone(TileEntity te)
public static int calcRedstoneFromInventory(IInventory inv)