aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks/BlockCasings4.java
diff options
context:
space:
mode:
authorBlueHero233 <87818077+BlueHero233@users.noreply.github.com>2024-11-08 21:00:41 -0300
committerGitHub <noreply@github.com>2024-11-09 00:00:41 +0000
commit409f50d563831e7fb53ff5bf6deca805a91154c1 (patch)
tree57e38ec99e9dfcad3f0ea225112e049a0682035c /src/main/java/gregtech/common/blocks/BlockCasings4.java
parent88f2451651aa35096ef2127b4e35ec7b19dd9053 (diff)
downloadGT5-Unofficial-409f50d563831e7fb53ff5bf6deca805a91154c1.tar.gz
GT5-Unofficial-409f50d563831e7fb53ff5bf6deca805a91154c1.tar.bz2
GT5-Unofficial-409f50d563831e7fb53ff5bf6deca805a91154c1.zip
Turbine Texture Refactor (#3435)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common/blocks/BlockCasings4.java')
-rw-r--r--src/main/java/gregtech/common/blocks/BlockCasings4.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/gregtech/common/blocks/BlockCasings4.java b/src/main/java/gregtech/common/blocks/BlockCasings4.java
index 0cba916548..fbb73044a5 100644
--- a/src/main/java/gregtech/common/blocks/BlockCasings4.java
+++ b/src/main/java/gregtech/common/blocks/BlockCasings4.java
@@ -104,7 +104,7 @@ public class BlockCasings4 extends BlockCasingsAbstract {
case 6 -> Textures.BlockIcons.MACHINE_CASING_FUSION.getIcon();
case 7 -> Textures.BlockIcons.MACHINE_CASING_FUSION_COIL.getIcon();
case 8 -> Textures.BlockIcons.MACHINE_CASING_FUSION_2.getIcon();
- case 9 -> Textures.BlockIcons.MACHINE_CASING_TURBINE.getIcon();
+ case 9 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_STEEL.getIcon();
case 10 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_STAINLESSSTEEL.getIcon();
case 11 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_TITANIUM.getIcon();
case 12 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_TUNGSTENSTEEL.getIcon();
@@ -118,6 +118,9 @@ public class BlockCasings4 extends BlockCasingsAbstract {
@Deprecated
public IIcon getTurbineCasing(int meta, int iconIndex, boolean active, boolean hasTurbine) {
return switch (meta) {
+ case 9 -> active ? Textures.BlockIcons.TURBINE_ACTIVE[iconIndex].getIcon()
+ : hasTurbine ? Textures.BlockIcons.TURBINE[iconIndex].getIcon()
+ : Textures.BlockIcons.TURBINE_EMPTY[iconIndex].getIcon();
case 10 -> active ? Textures.BlockIcons.TURBINE_ACTIVE1[iconIndex].getIcon()
: hasTurbine ? Textures.BlockIcons.TURBINE1[iconIndex].getIcon()
: Textures.BlockIcons.TURBINE_EMPTY1[iconIndex].getIcon();
@@ -127,9 +130,7 @@ public class BlockCasings4 extends BlockCasingsAbstract {
case 12 -> active ? Textures.BlockIcons.TURBINE_ACTIVE3[iconIndex].getIcon()
: hasTurbine ? Textures.BlockIcons.TURBINE3[iconIndex].getIcon()
: Textures.BlockIcons.TURBINE_EMPTY3[iconIndex].getIcon();
- default -> active ? Textures.BlockIcons.TURBINE_ACTIVE[iconIndex].getIcon()
- : hasTurbine ? Textures.BlockIcons.TURBINE[iconIndex].getIcon()
- : Textures.BlockIcons.TURBINE_EMPTY[iconIndex].getIcon();
+ default -> throw new IllegalStateException("Unexpected value: " + meta);
};
}
@@ -216,10 +217,11 @@ public class BlockCasings4 extends BlockCasingsAbstract {
}
}
return switch (tMeta) {
+ case 9 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_STEEL.getIcon();
case 10 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_STAINLESSSTEEL.getIcon();
case 11 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_TITANIUM.getIcon();
case 12 -> Textures.BlockIcons.MACHINE_CASING_TURBINE_TUNGSTENSTEEL.getIcon();
- default -> Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ default -> throw new IllegalStateException("Unexpected value: " + tMeta);
};
}
int tStartIndex = tMeta == 6 ? 1 : 13;