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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
package gregtech.common.tileentities.boilers;
import gregtech.api.enums.Dyes;
import gregtech.api.enums.SteamVariant;
import gregtech.api.enums.Textures.BlockIcons;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.render.TextureFactory;
import gregtech.common.config.machinestats.ConfigSteelSolarBoiler;
public class MTEBoilerSolarSteel extends MTEBoilerSolar {
public MTEBoilerSolarSteel(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
initBoilerStats();
}
public MTEBoilerSolarSteel(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
initBoilerStats();
}
public MTEBoilerSolarSteel(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
initBoilerStats();
}
protected void initBoilerStats() {
calcificationTicks = ConfigSteelSolarBoiler.calcificationTicks;
cooldownTicks = ConfigSteelSolarBoiler.cooldownTicks;
maxOutputPerSecond = ConfigSteelSolarBoiler.maxOutputPerSecond;
minOutputPerSecond = ConfigSteelSolarBoiler.minOutputPerSecond;
}
@Override
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
ITexture[][][] rTextures = new ITexture[4][17][];
for (int color = -1; color < 16; color++) {
int i = color + 1;
short[] colorModulation = Dyes.getModulation(color, Dyes._NULL.mRGBa);
rTextures[0][i] = new ITexture[] {
TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_BOTTOM, colorModulation) };
rTextures[1][i] = new ITexture[] { TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_TOP, colorModulation),
TextureFactory.of(BlockIcons.BOILER_SOLAR) };
rTextures[2][i] = new ITexture[] {
TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_SIDE, colorModulation) };
rTextures[3][i] = new ITexture[] { TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_SIDE, colorModulation),
TextureFactory.of(BlockIcons.OVERLAY_PIPE) };
}
return rTextures;
}
@Override
public int getCapacity() {
return 32000;
}
@Override
public SteamVariant getSteamVariant() {
return SteamVariant.STEEL;
}
@Override
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new MTEBoilerSolarSteel(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
}
}
|