aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers/GT_Cover_Lens.java
blob: b8675bf1c27c9fc24e9b4536553d04075de8236e (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
package gregtech.common.covers;

import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.util.GT_CoverBehavior;

public class GT_Cover_Lens extends GT_CoverBehavior {
    private final byte mColor;

    /**
     * @deprecated use {@link #GT_Cover_Lens(byte aColor, ITexture coverTexture)} instead.
     */
    @Deprecated
    public GT_Cover_Lens(byte aColor) {
        this(aColor, null);
    }

    public GT_Cover_Lens(byte aColor, ITexture coverTexture) {
        super(coverTexture);
        this.mColor = aColor;
    }

    @Override
    public boolean isRedstoneSensitive(
            byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer) {
        return false;
    }

    @Override
    public byte getLensColor(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) {
        return this.mColor;
    }
}