public class ContainerPlayer extends Container
| Modifier and Type | Field and Description |
|---|---|
InventoryCrafting |
craftMatrix |
InventoryCraftResult |
craftResult |
boolean |
isLocalWorld |
private EntityPlayer |
player |
private static EntityEquipmentSlot[] |
VALID_EQUIPMENT_SLOTS |
inventoryItemStacks, inventorySlots, listeners, windowId| Constructor and Description |
|---|
ContainerPlayer(InventoryPlayer playerInventory,
boolean localWorld,
EntityPlayer playerIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(EntityPlayer playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
addListener, addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, slotClick, updateProgressBarprivate static final EntityEquipmentSlot[] VALID_EQUIPMENT_SLOTS
public InventoryCrafting craftMatrix
public InventoryCraftResult craftResult
public boolean isLocalWorld
private final EntityPlayer player
public ContainerPlayer(InventoryPlayer playerInventory, boolean localWorld, EntityPlayer playerIn)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged in class Containerpublic void onContainerClosed(EntityPlayer playerIn)
onContainerClosed in class Containerpublic boolean canInteractWith(EntityPlayer playerIn)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot in class Containerpublic boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot in class Container