Class ChestContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.ChestContainer
-
public class ChestContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IInventory
container
private int
containerRows
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ChestContainer(ContainerType<?> p_i50091_1_, int p_i50091_2_, PlayerInventory p_i50091_3_, int p_i50091_4_)
ChestContainer(ContainerType<?> p_i50092_1_, int p_i50092_2_, PlayerInventory p_i50092_3_, IInventory p_i50092_4_, int p_i50092_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChestContainer
fiveRows(int p_216989_0_, PlayerInventory p_216989_1_)
static ChestContainer
fourRows(int p_216991_0_, PlayerInventory p_216991_1_)
IInventory
getContainer()
int
getRowCount()
static ChestContainer
oneRow(int p_216986_0_, PlayerInventory p_216986_1_)
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
removed(PlayerEntity p_75134_1_)
static ChestContainer
sixRows(int p_216990_0_, PlayerInventory p_216990_1_)
static ChestContainer
sixRows(int p_216984_0_, PlayerInventory p_216984_1_, IInventory p_216984_2_)
boolean
stillValid(PlayerEntity p_75145_1_)
static ChestContainer
threeRows(int p_216988_0_, PlayerInventory p_216988_1_)
static ChestContainer
threeRows(int p_216992_0_, PlayerInventory p_216992_1_, IInventory p_216992_2_)
static ChestContainer
twoRows(int p_216987_0_, PlayerInventory p_216987_1_)
-
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, slotsChanged, stillValid
-
-
-
-
Field Detail
-
container
private final IInventory container
-
containerRows
private final int containerRows
-
-
Constructor Detail
-
ChestContainer
private ChestContainer(ContainerType<?> p_i50091_1_, int p_i50091_2_, PlayerInventory p_i50091_3_, int p_i50091_4_)
-
ChestContainer
public ChestContainer(ContainerType<?> p_i50092_1_, int p_i50092_2_, PlayerInventory p_i50092_3_, IInventory p_i50092_4_, int p_i50092_5_)
-
-
Method Detail
-
oneRow
public static ChestContainer oneRow(int p_216986_0_, PlayerInventory p_216986_1_)
-
twoRows
public static ChestContainer twoRows(int p_216987_0_, PlayerInventory p_216987_1_)
-
threeRows
public static ChestContainer threeRows(int p_216988_0_, PlayerInventory p_216988_1_)
-
fourRows
public static ChestContainer fourRows(int p_216991_0_, PlayerInventory p_216991_1_)
-
fiveRows
public static ChestContainer fiveRows(int p_216989_0_, PlayerInventory p_216989_1_)
-
sixRows
public static ChestContainer sixRows(int p_216990_0_, PlayerInventory p_216990_1_)
-
threeRows
public static ChestContainer threeRows(int p_216992_0_, PlayerInventory p_216992_1_, IInventory p_216992_2_)
-
sixRows
public static ChestContainer sixRows(int p_216984_0_, PlayerInventory p_216984_1_, IInventory p_216984_2_)
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
removed
public void removed(PlayerEntity p_75134_1_)
-
getContainer
public IInventory getContainer()
-
getRowCount
public int getRowCount()
-
-