|
7 | 7 | import static gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtCutomCovers.TEXTURE_ZTONES_KORP;
|
8 | 8 |
|
9 | 9 | import cpw.mods.fml.common.Loader;
|
| 10 | +import gtPlusPlus.core.lib.VanillaColours; |
10 | 11 | import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock.CustomIcon;
|
11 | 12 | import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtCutomCovers;
|
12 | 13 | import gtPlusPlus.xmod.gregtech.common.items.MetaCustomCoverItem;
|
| 14 | +import gtPlusPlus.xmod.gregtech.common.items.covers.MetaItemCoverCasings; |
13 | 15 |
|
14 | 16 | public class CoverManager {
|
15 |
| - |
16 |
| - //ZTones |
| 17 | + |
| 18 | + // ZTones |
17 | 19 | public static MetaCustomCoverItem Cover_Agon;
|
18 | 20 | public static MetaCustomCoverItem Cover_Iszm;
|
19 | 21 | public static MetaCustomCoverItem Cover_Korp;
|
20 | 22 | public static MetaCustomCoverItem Cover_Jelt;
|
21 | 23 | public static MetaCustomCoverItem Cover_Bitt;
|
22 |
| - |
| 24 | + |
| 25 | + // GT |
| 26 | + public static MetaItemCoverCasings Cover_Gt_Machine_Casing; |
23 | 27 |
|
24 | 28 | public static void generateCustomCovers() {
|
25 | 29 |
|
26 | 30 | // init textures
|
27 | 31 | TexturesGtCutomCovers.init();
|
28 |
| - |
| 32 | + |
| 33 | + // GT Machine Casings |
| 34 | + Cover_Gt_Machine_Casing = new MetaItemCoverCasings(); |
| 35 | + |
29 | 36 | if (Loader.isModLoaded("Ztones")) {
|
30 | 37 | String[] aZtoneCoverTextureNames = new String[] { "agon", "iszm", "korp", "jelt", "bitt" };
|
31 |
| - MetaCustomCoverItem[] aZtoneCoverItems = new MetaCustomCoverItem[] { Cover_Agon, Cover_Iszm, Cover_Korp, Cover_Jelt, Cover_Bitt}; |
32 |
| - CustomIcon[][] aArrays = new CustomIcon[][] { TEXTURE_ZTONES_AGON, TEXTURE_ZTONES_ISZM, TEXTURE_ZTONES_KORP, TEXTURE_ZTONES_JELT, TEXTURE_ZTONES_BITT }; |
33 |
| - for (int y=0;y<aZtoneCoverTextureNames.length;y++) { |
34 |
| - aZtoneCoverItems[y] = new MetaCustomCoverItem("Ztones", 16, aZtoneCoverTextureNames[y], aArrays[y]); |
35 |
| - } |
| 38 | + MetaCustomCoverItem[] aZtoneCoverItems = new MetaCustomCoverItem[] { Cover_Agon, Cover_Iszm, Cover_Korp, |
| 39 | + Cover_Jelt, Cover_Bitt }; |
| 40 | + CustomIcon[][] aArrays = new CustomIcon[][] { TEXTURE_ZTONES_AGON, TEXTURE_ZTONES_ISZM, TEXTURE_ZTONES_KORP, |
| 41 | + TEXTURE_ZTONES_JELT, TEXTURE_ZTONES_BITT }; |
| 42 | + short[][][] aRGB = new short[][][] { ZTONES.RGB_AGON, ZTONES.RGB_ISZM, ZTONES.RGB_KORP, ZTONES.RGB_JELT, |
| 43 | + ZTONES.RGB_BITT }; |
| 44 | + for (int y = 0; y < aZtoneCoverTextureNames.length; y++) { |
| 45 | + aZtoneCoverItems[y] = new MetaCustomCoverItem("Ztones", 16, aZtoneCoverTextureNames[y], aArrays[y], |
| 46 | + aRGB[y]); |
| 47 | + } |
36 | 48 | }
|
37 |
| - |
| 49 | + |
38 | 50 | }
|
39 |
| - |
40 |
| - |
| 51 | + |
| 52 | + final static class ZTONES { |
| 53 | + |
| 54 | + private static final short[][] RGB_AGON = new short[][] { VanillaColours.DYE_WHITE.getAsShort(), |
| 55 | + VanillaColours.DYE_YELLOW.getAsShort(), VanillaColours.DYE_LIME.getAsShort(), |
| 56 | + VanillaColours.DYE_GREEN.getAsShort(), VanillaColours.DYE_CYAN.getAsShort(), |
| 57 | + VanillaColours.DYE_LIGHT_BLUE.getAsShort(), VanillaColours.DYE_DARK_BLUE.getAsShort(), |
| 58 | + VanillaColours.DYE_DARK_PURPLE.getAsShort(), VanillaColours.DYE_LIGHT_PURPLE.getAsShort(), |
| 59 | + VanillaColours.DYE_PINK.getAsShort(), VanillaColours.DYE_RED.getAsShort(), |
| 60 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_BROWN.getAsShort(), |
| 61 | + VanillaColours.DYE_BLACK.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 62 | + VanillaColours.DYE_LIGHT_GRAY.getAsShort(), }; |
| 63 | + private static final short[][] RGB_ISZM = new short[][] { VanillaColours.DYE_LIGHT_GRAY.getAsShort(), |
| 64 | + VanillaColours.DYE_WHITE.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 65 | + VanillaColours.DYE_DARK_BLUE.getAsShort(), VanillaColours.DYE_YELLOW.getAsShort(), |
| 66 | + VanillaColours.DYE_DARK_BLUE.getAsShort(), VanillaColours.DYE_RED.getAsShort(), |
| 67 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_CYAN.getAsShort(), |
| 68 | + VanillaColours.DYE_YELLOW.getAsShort(), VanillaColours.DYE_RED.getAsShort(), |
| 69 | + VanillaColours.DYE_CYAN.getAsShort(), VanillaColours.DYE_GREEN.getAsShort(), |
| 70 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_LIGHT_BLUE.getAsShort(), |
| 71 | + VanillaColours.DYE_DARK_PURPLE.getAsShort(), |
| 72 | + }; |
| 73 | + private static final short[][] RGB_KORP = new short[][] { new short[] { 125, 125, 125 }, |
| 74 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 75 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 76 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 77 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 78 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), |
| 79 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), new short[] { 22, 156, 156 }, new short[] { 22, 156, 156 }, |
| 80 | + VanillaColours.DYE_DARK_GRAY.getAsShort(), VanillaColours.DYE_DARK_GRAY.getAsShort(), }; |
| 81 | + private static final short[][] RGB_JELT = new short[][] { VanillaColours.DYE_ORANGE.getAsShort(), |
| 82 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 83 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 84 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 85 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 86 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 87 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 88 | + VanillaColours.DYE_ORANGE.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 89 | + VanillaColours.DYE_ORANGE.getAsShort(), }; |
| 90 | + private static final short[][] RGB_BITT = new short[][] { VanillaColours.DYE_BLACK.getAsShort(), |
| 91 | + VanillaColours.DYE_WHITE.getAsShort(), VanillaColours.DYE_YELLOW.getAsShort(), |
| 92 | + VanillaColours.DYE_LIME.getAsShort(), VanillaColours.DYE_GREEN.getAsShort(), |
| 93 | + VanillaColours.DYE_CYAN.getAsShort(), VanillaColours.DYE_LIGHT_BLUE.getAsShort(), |
| 94 | + VanillaColours.DYE_LIGHT_BLUE.getAsShort(), VanillaColours.DYE_DARK_BLUE.getAsShort(), |
| 95 | + VanillaColours.DYE_DARK_PURPLE.getAsShort(), VanillaColours.DYE_LIGHT_PURPLE.getAsShort(), |
| 96 | + VanillaColours.DYE_PINK.getAsShort(), VanillaColours.DYE_RED.getAsShort(), |
| 97 | + VanillaColours.DYE_RED.getAsShort(), VanillaColours.DYE_ORANGE.getAsShort(), |
| 98 | + VanillaColours.DYE_BROWN.getAsShort(), }; |
| 99 | + |
| 100 | + } |
| 101 | + |
41 | 102 | }
|
0 commit comments