aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
blob: 99ec88c149d1348f097e0c7325d013249edb01e8 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
package gregtech.api.interfaces.tileentity;

import gregtech.api.util.GT_CoverBehavior;
import net.minecraft.item.ItemStack;

public interface ICoverable extends IRedstoneTileEntity, IHasInventory, IBasicEnergyContainer {
    public boolean canPlaceCoverIDAtSide(byte aSide, int aID);

    public boolean canPlaceCoverItemAtSide(byte aSide, ItemStack aCover);

    public boolean dropCover(byte aSide, byte aDroppedSide, boolean aForced);

    public void setCoverDataAtSide(byte aSide, int aData);

    public void setCoverIDAtSide(byte aSide, int aID);

    public void setCoverItemAtSide(byte aSide, ItemStack aCover);

    public int getCoverDataAtSide(byte aSide);

    public int getCoverIDAtSide(byte aSide);

    public ItemStack getCoverItemAtSide(byte aSide);

    public GT_CoverBehavior getCoverBehaviorAtSide(byte aSide);

    /**
     * For use by the regular MetaTileEntities. Returns the Cover Manipulated input Redstone.
     * Don't use this if you are a Cover Behavior. Only for MetaTileEntities.
     */
    public byte getInternalInputRedstoneSignal(byte aSide);

    /**
     * For use by the regular MetaTileEntities. This makes it not conflict with Cover based Redstone Signals.
     * Don't use this if you are a Cover Behavior. Only for MetaTileEntities.
     */
    public void setInternalOutputRedstoneSignal(byte aSide, byte aStrength);

    /**
     * Causes a general Cover Texture update.
     * Sends 6 Integers to Client + causes @issueTextureUpdate()
     */
    public void issueCoverUpdate(byte aSide);
}