aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/CasingTextureHandler.java
blob: c85bac711595982e51dd321df1cd596e5fcc6bd5 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package gtPlusPlus.xmod.gregtech.common.blocks.textures;

import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;

import gregtech.api.enums.Textures;
import gtPlusPlus.xmod.gregtech.common.blocks.GregtechMetaCasingBlocks;

public class CasingTextureHandler {

    private static final TexturesCentrifugeMultiblock gregtechX = new TexturesCentrifugeMultiblock();

    public static IIcon getIcon(final int ordinalSide, final int aMeta) { // Texture ID's. case 0 == ID[57]
        if ((aMeta >= 0) && (aMeta < 16)) {
            return switch (aMeta) {
                // Centrifuge
                case 0 -> TexturesGtBlock.Casing_Material_Centrifuge.getIcon();
                // Coke Oven Frame
                case 1 -> TexturesGtBlock.Casing_Material_Tantalloy61.getIcon();
                // Coke Oven Casing Tier 1
                case 2 -> Textures.BlockIcons.MACHINE_CASING_FIREBOX_BRONZE.getIcon();
                // Coke Oven Casing Tier 2
                case 3 -> Textures.BlockIcons.MACHINE_CASING_FIREBOX_STEEL.getIcon();
                // Material Press Casings
                case 4 -> Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon();
                // Electrolyzer Casings
                case 5 -> TexturesGtBlock.Casing_Material_Potin.getIcon();
                // Broken Blue Fusion Casings
                case 6 -> TexturesGtBlock.Casing_Material_MaragingSteel.getIcon();
                // Maceration Stack Casings
                case 7 -> TexturesGtBlock.Casing_Material_Tumbaga.getIcon();
                // Broken Pink Fusion Casings
                case 8 -> TexturesGtBlock.TEXTURE_ORGANIC_PANEL_A_GLOWING.getIcon();
                // Matter Fabricator Casings
                case 9 -> TexturesGtBlock.TEXTURE_METAL_PANEL_F.getIcon();
                // Iron Blast Fuance Textures
                case 10 -> TexturesGtBlock.Casing_Machine_Simple_Top.getIcon();
                // Multitank Exterior Casing
                case 11 -> TexturesGtBlock.Casing_Material_Grisium.getIcon();
                // Reactor Casing I
                case 12 -> TexturesGtBlock.Casing_Material_Stellite.getIcon();
                // Reactor Casing II
                case 13 -> TexturesGtBlock.Casing_Material_Zeron100.getIcon();
                case 14 -> TexturesGtBlock.Casing_Staballoy_Firebox.getIcon();
                case 15 -> TexturesGtBlock.Casing_Material_ZirconiumCarbide.getIcon();
                default -> Textures.BlockIcons.MACHINE_CASING_RADIOACTIVEHAZARD.getIcon();
            };
        }
        return Textures.BlockIcons.MACHINE_CASING_GEARBOX_TUNGSTENSTEEL.getIcon();
    }

    public static IIcon handleCasingsGT(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
        final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
        return gregtechX.handleCasingsGT(aWorld, xCoord, yCoord, zCoord, side, thisBlock);
    }
}