MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / name

Method name

src/main/java/gregapi/util/UT.java:326–333  ·  view source on GitHub ↗
(Fluid aFluid, boolean aLocalized)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 8

getMethod · 0.95
makeMethod · 0.95
capitaliseMethod · 0.95
replaceAllMethod · 0.80
containsMethod · 0.65
getUnlocalizedNameMethod · 0.45
getLocalizedNameMethod · 0.45
getFluidMethod · 0.45

Tested by

no test coverage detected