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