public class ChestContainer extends Container
Modifier and Type | Field and Description |
---|---|
private IInventory |
lowerChestInventory |
private int |
numRows |
inventorySlots, windowId
Modifier | Constructor and Description |
---|---|
|
ChestContainer(ContainerType<?> type,
int id,
PlayerInventory playerInventoryIn,
IInventory p_i50092_4_,
int rows) |
private |
ChestContainer(ContainerType<?> type,
int id,
PlayerInventory player,
int rows) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
static ChestContainer |
createGeneric9X1(int id,
PlayerInventory player) |
static ChestContainer |
createGeneric9X2(int id,
PlayerInventory player) |
static ChestContainer |
createGeneric9X3(int id,
PlayerInventory player) |
static ChestContainer |
createGeneric9X3(int id,
PlayerInventory player,
IInventory blockEntity) |
static ChestContainer |
createGeneric9X4(int id,
PlayerInventory player) |
static ChestContainer |
createGeneric9X5(int id,
PlayerInventory player) |
static ChestContainer |
createGeneric9X6(int id,
PlayerInventory player) |
static ChestContainer |
createGeneric9X6(int id,
PlayerInventory player,
IInventory blockEntity) |
IInventory |
getLowerChestInventory() |
int |
getNumRows() |
void |
onContainerClosed(PlayerEntity playerIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
private final IInventory lowerChestInventory
private final int numRows
private ChestContainer(ContainerType<?> type, int id, PlayerInventory player, int rows)
public ChestContainer(ContainerType<?> type, int id, PlayerInventory playerInventoryIn, IInventory p_i50092_4_, int rows)
public static ChestContainer createGeneric9X1(int id, PlayerInventory player)
public static ChestContainer createGeneric9X2(int id, PlayerInventory player)
public static ChestContainer createGeneric9X3(int id, PlayerInventory player)
public static ChestContainer createGeneric9X4(int id, PlayerInventory player)
public static ChestContainer createGeneric9X5(int id, PlayerInventory player)
public static ChestContainer createGeneric9X6(int id, PlayerInventory player)
public static ChestContainer createGeneric9X3(int id, PlayerInventory player, IInventory blockEntity)
public static ChestContainer createGeneric9X6(int id, PlayerInventory player, IInventory blockEntity)
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot
in class Container
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
in class Container
public IInventory getLowerChestInventory()
public int getNumRows()