()
| 122 | private LoggerPlayerActivity mPlayerLogger; |
| 123 | |
| 124 | @SuppressWarnings("unchecked") |
| 125 | public GT_API() { |
| 126 | GAPI = this; |
| 127 | |
| 128 | if (!MD.ENCHIRIDION.mLoaded) MD.MaCu.mLoaded = F; |
| 129 | |
| 130 | // A bunch of Code that is there to statically initialize the Database in the right order and without crashes. |
| 131 | MT.init(); |
| 132 | BI.BAROMETER.toString(); |
| 133 | OP.ore.toString(); |
| 134 | |
| 135 | // Make sure Icons are initialized. |
| 136 | Textures.BlockIcons.VOID.toString(); |
| 137 | Textures.ItemIcons .VOID.toString(); |
| 138 | ErrorRenderer.INSTANCE.toString(); |
| 139 | |
| 140 | // Guess what, I got a random Crash from one of those not being classloaded... |
| 141 | UT.Entities.class.toString(); |
| 142 | IMTE_CanConnectRedstone.class.toString(); |
| 143 | |
| 144 | |
| 145 | try { |
| 146 | DW = new DummyWorld(); |
| 147 | } catch(Throwable e) { |
| 148 | ERR.println("======================================================================================================"); |
| 149 | ERR.println("WARNING, DUMMY WORLD COULD NOT BE CREATED, SOME RECIPE RELATED THINGS MAY NOT FUNCTION PROPERLY NOW!!!"); |
| 150 | ERR.println("======================================================================================================"); |
| 151 | e.printStackTrace(ERR); |
| 152 | ERR.println("======================================================================================================"); |
| 153 | } |
| 154 | |
| 155 | IconsGT.INDEX_BLOCK_GAS = TextureSet.addToAll(MD.GT.mID, F, "gas"); |
| 156 | IconsGT.INDEX_BLOCK_PLASMA = TextureSet.addToAll(MD.GT.mID, F, "plasma"); |
| 157 | IconsGT.INDEX_BLOCK_MOLTEN = TextureSet.addToAll(MD.GT.mID, F, "molten"); |
| 158 | IconsGT.INDEX_BLOCK_PIPE_SIDE = TextureSet.addToAll(MD.GT.mID, F, "pipeSide"); |
| 159 | |
| 160 | OP.ore .addTextureSet(MD.GT, F); |
| 161 | OP.oreGravel .addTextureSet(MD.GT, F); |
| 162 | OP.oreDense .addTextureSet(MD.GT, F); |
| 163 | OP.oreBedrock .addTextureSet(MD.GT, F); |
| 164 | |
| 165 | OP.pipeTiny .addTextureSet(MD.GT, F); |
| 166 | OP.pipeSmall .addTextureSet(MD.GT, F); |
| 167 | OP.pipeMedium .addTextureSet(MD.GT, F); |
| 168 | OP.pipeLarge .addTextureSet(MD.GT, F); |
| 169 | OP.pipeHuge .addTextureSet(MD.GT, F); |
| 170 | OP.pipeQuadruple .addTextureSet(MD.GT, F); |
| 171 | OP.pipeNonuple .addTextureSet(MD.GT, F); |
| 172 | |
| 173 | OP.wire .addTextureSet(MD.GT, F); |
| 174 | OP.foil .addTextureSet(MD.GT, F); |
| 175 | |
| 176 | // It is VERY important that those are registered first. Otherwise GregTech would output its own Storage Blocks. |
| 177 | OreDictManager.INSTANCE.setTarget_(OP.blockDust , MT.Stone , ST.make(Blocks.gravel , 1, 0), T, F, T); |
| 178 | OreDictManager.INSTANCE.setTarget_(OP.blockDust , MT.SoulSand , ST.make(Blocks.soul_sand , 1, 0), T, F, T); |
| 179 | OreDictManager.INSTANCE.setTarget_(OP.blockDust , MT.Sand , ST.make(Blocks.sand , 1, 0), T, F, T); |
| 180 | OreDictManager.INSTANCE.setTarget_(OP.blockDust , MT.RedSand , ST.make(Blocks.sand , 1, 1), T, F, T); |
| 181 | OreDictManager.INSTANCE.setTarget_(OP.blockSolid, MT.Sand , ST.make(Blocks.sandstone , 1, 0), T, F, T); |
nothing calls this directly
no test coverage detected