(NBTTagCompound aData, List<String> aList, boolean aAllDetails)
| 2235 | } |
| 2236 | |
| 2237 | public static List<String> getDataToolTip(NBTTagCompound aData, List<String> aList, boolean aAllDetails) { |
| 2238 | if (aData.hasKey(NBT_REACTOR_SETUP)) { |
| 2239 | aList.add(LH.Chat.CYAN + "Reactor Setup: " + aData.getString(NBT_REACTOR_SETUP_NAME)); |
| 2240 | return aList; |
| 2241 | } |
| 2242 | if (aData.hasKey(NBT_CANVAS_BLOCK)) { |
| 2243 | aList.add(LH.Chat.CYAN + "Block Image: " + ST.names(ST.make(Block.getBlockById(aData.getInteger(NBT_CANVAS_BLOCK)), 1, aData.getInteger(NBT_CANVAS_META)))); |
| 2244 | return aList; |
| 2245 | } |
| 2246 | if (aData.hasKey(NBT_REPLICATOR_DATA)) { |
| 2247 | short tIndex = aData.getShort(NBT_REPLICATOR_DATA); |
| 2248 | if (Code.exists(tIndex, OreDictMaterial.MATERIAL_ARRAY)) { |
| 2249 | OreDictMaterial tMaterial = OreDictMaterial.MATERIAL_ARRAY[tIndex]; |
| 2250 | if (tMaterial.contains(TD.Processing.UUM)) { |
| 2251 | if (aAllDetails) { |
| 2252 | aList.add(LH.Chat.CYAN + "Material Data: " + LH.Chat.WHITE + tMaterial.getLocal()); |
| 2253 | aList.add(LH.Chat.CYAN + "Can be Replicated using"); |
| 2254 | if (tMaterial.contains(TD.Atomic.ANTIMATTER)) { |
| 2255 | aList.add(LH.Chat.WHITE + "Neutral Antimatter: " + LH.Chat.YELLOW + tMaterial.mNeutrons); |
| 2256 | aList.add(LH.Chat.WHITE + "Charged Antimatter: " + LH.Chat.RED + tMaterial.mProtons); |
| 2257 | } else { |
| 2258 | aList.add(LH.Chat.WHITE + "Neutral Matter: " + LH.Chat.YELLOW + tMaterial.mNeutrons); |
| 2259 | aList.add(LH.Chat.WHITE + "Charged Matter: " + LH.Chat.RED + tMaterial.mProtons); |
| 2260 | } |
| 2261 | aList.add(LH.Chat.WHITE + "Energy: " + TD.Energy.QU.getChatFormat() + ((tMaterial.mNeutrons+tMaterial.mProtons)*65536) + " " + TD.Energy.QU.getLocalisedNameShort()); |
| 2262 | } else { |
| 2263 | aList.add(LH.Chat.CYAN + "Mat Data: " + LH.Chat.WHITE + tMaterial.getLocal() + (aAllDetails ? "" : " ("+LH.Chat.YELLOW+tMaterial.mNeutrons+LH.Chat.WHITE+"/"+LH.Chat.RED+tMaterial.mProtons+LH.Chat.WHITE+"/"+TD.Energy.QU.getChatFormat()+((tMaterial.mNeutrons+tMaterial.mProtons)*65536)+LH.Chat.WHITE+")")); |
| 2264 | } |
| 2265 | } else { |
| 2266 | aList.add(LH.Chat.CYAN + "Material Data: " + LH.Chat.WHITE + tMaterial.getLocal() + LH.Chat.ORANGE + " (Not Replicatable)"); |
| 2267 | } |
| 2268 | } |
| 2269 | return aList; |
| 2270 | } |
| 2271 | if (IL.GC_Schematic_1.exists() && aData.hasKey("gc_schematics_1")) { |
| 2272 | aList.add(LH.Chat.CYAN + IL.GC_Schematic_1.getWithMeta(1, aData.getShort("gc_schematics_1")).getDisplayName()); |
| 2273 | return aList; |
| 2274 | } |
| 2275 | if (IL.GC_Schematic_2.exists() && aData.hasKey("gc_schematics_2")) { |
| 2276 | aList.add(LH.Chat.CYAN + IL.GC_Schematic_2.getWithMeta(1, aData.getShort("gc_schematics_2")).getDisplayName()); |
| 2277 | return aList; |
| 2278 | } |
| 2279 | if (IL.GC_Schematic_3.exists() && aData.hasKey("gc_schematics_3")) { |
| 2280 | aList.add(LH.Chat.CYAN + IL.GC_Schematic_3.getWithMeta(1, aData.getShort("gc_schematics_3")).getDisplayName()); |
| 2281 | return aList; |
| 2282 | } |
| 2283 | if (IL.IE_Blueprint_Projectiles_Common.exists() && aData.hasKey("ie_blueprint")) { |
| 2284 | short tMeta = aData.getShort("ie_blueprint"); |
| 2285 | aList.add(LH.Chat.CYAN + IL.IE_Blueprint_Projectiles_Common.getWithMeta(1, tMeta).getDisplayName()); |
| 2286 | switch(tMeta) { |
| 2287 | case 0: aList.add(LH.Chat.GREEN + "Common Projectiles"); break; |
| 2288 | case 1: aList.add(LH.Chat.GREEN + "Specialized Projectiles"); break; |
| 2289 | case 2: aList.add(LH.Chat.GREEN + "Arc Furnace Electrodes"); break; |
| 2290 | } |
| 2291 | return aList; |
| 2292 | } |
| 2293 | String tString = getBookTitle(aData); |
| 2294 | if (Code.stringValid(tString)) { |
no test coverage detected