public class ContainerColossalChest
extends org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<net.minecraft.inventory.container.Slot>
ColossalChest.| Modifier and Type | Field and Description |
|---|---|
static int |
CHEST_INVENTORY_COLUMNS
Amount of columns in the chest.
|
static int |
CHEST_INVENTORY_ROWS
Amount of visible rows in the chest.
|
inventory| Constructor and Description |
|---|
ContainerColossalChest(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.inventory.IInventory inventory) |
ContainerColossalChest(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.network.PacketBuffer data) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChestSlots(int rows,
int columns) |
void |
addListener(net.minecraft.inventory.container.IContainerListener listener) |
void |
detectAndSendChanges() |
protected void |
detectAndSendChangesOverride() |
protected void |
disableSlot(int slotIndex) |
protected void |
enableElementAt(int visibleIndex,
int elementIndex,
net.minecraft.inventory.container.Slot element) |
protected void |
enableSlot(int slotIndex,
int row,
int column) |
int |
getColumns() |
java.util.Map<invtweaks.api.container.ContainerSection,java.util.List<net.minecraft.inventory.container.Slot>> |
getContainerSelection() |
int |
getPageSize() |
protected int |
getTagSize(net.minecraft.nbt.INBT tag) |
protected java.util.List<net.minecraft.inventory.container.Slot> |
getUnfilteredItems() |
protected net.minecraft.inventory.container.Slot |
makeSlot(net.minecraft.inventory.IInventory inventory,
int index,
int row,
int column) |
void |
onScroll(int firstRow) |
protected void |
sendSlotContentsToPlayer(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.inventory.container.Container containerToSend,
int slotInd,
net.minecraft.item.ItemStack stack) |
void |
updateCraftingInventory(net.minecraft.entity.player.ServerPlayerEntity player,
java.util.List<net.minecraft.item.ItemStack> allItems) |
additionalApplies, filter, getFilteredItemCount, getFilteredItems, getFirstElement, getScrollStepSize, getUnfilteredItemCount, getVisibleElement, isElementVisible, refreshFilter, updateFiltercanInteractWith, getContainerInventory, getSizeInventory, isAssertInventorySize, onContainerClosedaddInventory, addPlayerArmorInventory, addPlayerInventory, addSlot, adjustPhantomSlot, createNewSlot, fillPhantomSlot, getNextValueId, getPlayerIInventory, getSlotRange, getSlotStart, getValue, getValueIds, initializeValues, mergeItemStack, onButtonClick, onUpdate, putButtonAction, registerSyncedVariable, resetDrag, setGuiValueListener, setSlotPosX, setSlotPosY, setValue, slotClick, transferStackInSlotareItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, onCraftMatrixChanged, putStackInSlot, removeListener, setAll, setCanCraft, trackInt, trackIntArray, updateProgressBarpublic static final int CHEST_INVENTORY_ROWS
public static final int CHEST_INVENTORY_COLUMNS
public ContainerColossalChest(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.network.PacketBuffer data)
public ContainerColossalChest(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.inventory.IInventory inventory)
protected java.util.List<net.minecraft.inventory.container.Slot> getUnfilteredItems()
getUnfilteredItems in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<net.minecraft.inventory.container.Slot>protected void addChestSlots(int rows,
int columns)
protected net.minecraft.inventory.container.Slot makeSlot(net.minecraft.inventory.IInventory inventory,
int index,
int row,
int column)
public int getColumns()
getColumns in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<net.minecraft.inventory.container.Slot>public int getPageSize()
getPageSize in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<net.minecraft.inventory.container.Slot>protected void disableSlot(int slotIndex)
protected void enableSlot(int slotIndex,
int row,
int column)
public void onScroll(int firstRow)
onScroll in interface org.cyclops.cyclopscore.client.gui.component.WidgetScrollBar.IScrollCallbackonScroll in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<net.minecraft.inventory.container.Slot>protected void enableElementAt(int visibleIndex,
int elementIndex,
net.minecraft.inventory.container.Slot element)
enableElementAt in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<net.minecraft.inventory.container.Slot>public void addListener(net.minecraft.inventory.container.IContainerListener listener)
addListener in class org.cyclops.cyclopscore.inventory.container.ContainerExtendedpublic void detectAndSendChanges()
detectAndSendChanges in class org.cyclops.cyclopscore.inventory.container.ContainerExtendedprotected void detectAndSendChangesOverride()
protected void sendSlotContentsToPlayer(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.inventory.container.Container containerToSend,
int slotInd,
net.minecraft.item.ItemStack stack)
protected int getTagSize(net.minecraft.nbt.INBT tag)
public void updateCraftingInventory(net.minecraft.entity.player.ServerPlayerEntity player,
java.util.List<net.minecraft.item.ItemStack> allItems)
public java.util.Map<invtweaks.api.container.ContainerSection,java.util.List<net.minecraft.inventory.container.Slot>> getContainerSelection()