blob: 9e531e552ccdc6180edf2ea9105c7f2d1cbce511 (
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
|
package gregtech.common.covers;
import net.minecraftforge.common.util.ForgeDirection;
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(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity,
long aTimer) {
return false;
}
@Override
public byte getLensColor(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity) {
return this.mColor;
}
}
|