aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
blob: 9d19e7cef08cfcedb4eeaf99d9b1d00d07c9b4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package gregtech.api.interfaces.tileentity;

import net.minecraft.item.ItemStack;

/**
 * You are allowed to include this File in your Download, as i will not change it.
 */
public interface IDigitalChest extends IHasWorldObjectAndCoords {
    /**
     * Is this even a TileEntity of a Digital Chest?
     * I need things like this Function for MetaTileEntities, you MUST check this!!!
     * Do not assume that it's a Digital Chest or similar Device, when it just implements this Interface.
     */
    boolean isDigitalChest();

    /**
     * Gives an Array of Stacks with Size (of all the Data-stored Items) of the correspondent Item kinds (regular QChests have only one)
     * Does NOT include the 64 "ready" Items inside the Slots, and neither the 128 Items in the overflow Buffer.
     */
    ItemStack[] getStoredItemData();

    /**
     * A generic Interface for just setting the amount of contained Items
     */
    void setItemCount(int aCount);

    /**
     * Gets the maximum Item count for this QChest alike Storage. This applies to the Data-Storage, not for the up to 192 buffered Items!
     */
    int getMaxItemCount();
}