(Fluid aFluid, boolean aLocalized)
| 324 | } |
| 325 | |
| 326 | @Deprecated public static String name(Fluid aFluid, boolean aLocalized) { |
| 327 | if (aFluid == null) return ""; |
| 328 | if (!aLocalized) return aFluid.getUnlocalizedName(); |
| 329 | if (aFluid instanceof FluidGT) return LH.get(aFluid.getUnlocalizedName()); |
| 330 | String rName = aFluid.getLocalizedName(make(aFluid, 0)); |
| 331 | if (rName.contains("fluid.") || rName.contains("tile.")) return Code.capitalise(rName.replaceAll("fluid.", "").replaceAll("tile.", "")); |
| 332 | return rName; |
| 333 | } |
| 334 | |
| 335 | @Deprecated public static String name(FluidStack aFluid, boolean aLocalized) { |
| 336 | return aFluid == null ? "" : name(aFluid.getFluid(), aLocalized); |
nothing calls this directly
no test coverage detected