Package net.minecraft.src
Class Container
- java.lang.Object
-
- net.minecraft.src.Container
-
- Direct Known Subclasses:
ContainerBrewingStand
,ContainerChest
,ContainerDispenser
,ContainerEnchantment
,ContainerFurnace
,ContainerPlayer
,ContainerWorkbench
public abstract class Container extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List
crafters
java.util.List
inventoryItemStacks
java.util.List<Slot>
inventorySlots
int
windowId
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Slot
addSlot(Slot var1)
abstract boolean
canInteractWith(Player entityplayer)
boolean
enchantItem(Player var1, int var2)
void
func_20110_b(short word0)
void
func_20113_a(short word0)
Slot
func_20127_a(IInventory iInventory, int i)
java.util.List<ItemStack>
func_28127_b()
boolean
getCanCraft(Player var1)
java.util.List
getInventory()
@net.minecraft.modding.api.Side.Client short
getNextTransactionID(InventoryPlayer var1)
Slot
getSlot(int var1)
protected boolean
mergeItemStack(ItemStack var1, int var2, int var3, boolean var4)
void
onCraftGuiClosed(Player var1)
void
onCraftGuiOpened(ICrafting var1)
void
onCraftMatrixChanged(IInventory var1)
void
putStackInSlot(int var1, ItemStack var2)
void
putStacksInSlots(ItemStack[] var1)
protected void
retrySlotClick(int var1, int var2, boolean var3, Player var4)
void
setCanCraft(Player entityPlayer, boolean var2)
ItemStack
slotClick(int var1, int var2, boolean var3, Player var4)
ItemStack
transferStackInSlot(int var1)
void
updateCraftingResults()
void
updateProgressBar(int i, int j)
-
-
-
Field Detail
-
inventoryItemStacks
public java.util.List inventoryItemStacks
-
inventorySlots
public java.util.List<Slot> inventorySlots
-
windowId
public int windowId
-
crafters
protected java.util.List crafters
-
-
Method Detail
-
getInventory
public java.util.List getInventory()
-
onCraftGuiOpened
public void onCraftGuiOpened(ICrafting var1)
-
func_28127_b
public java.util.List<ItemStack> func_28127_b()
-
updateCraftingResults
public void updateCraftingResults()
-
enchantItem
public boolean enchantItem(Player var1, int var2)
-
func_20127_a
public Slot func_20127_a(IInventory iInventory, int i)
-
getSlot
public Slot getSlot(int var1)
-
transferStackInSlot
public ItemStack transferStackInSlot(int var1)
-
retrySlotClick
protected void retrySlotClick(int var1, int var2, boolean var3, Player var4)
-
onCraftGuiClosed
public void onCraftGuiClosed(Player var1)
-
onCraftMatrixChanged
public void onCraftMatrixChanged(IInventory var1)
-
putStackInSlot
public void putStackInSlot(int var1, ItemStack var2)
-
getCanCraft
public boolean getCanCraft(Player var1)
-
updateProgressBar
@Client public void updateProgressBar(int i, int j)
-
getNextTransactionID
@Client public @net.minecraft.modding.api.Side.Client short getNextTransactionID(InventoryPlayer var1)
-
func_20113_a
@Client public void func_20113_a(short word0)
-
setCanCraft
public void setCanCraft(Player entityPlayer, boolean var2)
-
func_20110_b
@Client public void func_20110_b(short word0)
-
canInteractWith
public abstract boolean canInteractWith(Player entityplayer)
-
mergeItemStack
protected boolean mergeItemStack(ItemStack var1, int var2, int var3, boolean var4)
-
-