Class ChestContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.ChestContainer
-
Field Summary
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ModifierConstructorDescriptionprivate
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
Modifier and TypeMethodDescriptionstatic ChestContainer
fiveRows
(int p_216989_0_, PlayerInventory p_216989_1_) static ChestContainer
fourRows
(int p_216991_0_, PlayerInventory p_216991_1_) int
static ChestContainer
oneRow
(int p_216986_0_, PlayerInventory p_216986_1_) 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 Details
-
container
-
containerRows
private final int containerRows
-
-
Constructor Details
-
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 Details
-
oneRow
-
twoRows
-
threeRows
-
fourRows
-
fiveRows
-
sixRows
-
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
- Specified by:
stillValid
in classContainer
-
quickMoveStack
- Overrides:
quickMoveStack
in classContainer
-
removed
-
getContainer
-
getRowCount
public int getRowCount()
-