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

Method configName

src/main/java/gregapi/util/ST.java:959–965  ·  view source on GitHub ↗
(ItemStack aStack)

Source from the content-addressed store, hash-verified

957 }
958
959 public static String configName(ItemStack aStack) {
960 if (invalid(aStack)) return "";
961 Object rName = OreDictManager.INSTANCE.getAssociation_(aStack, T);
962 if (rName != null) return rName.toString();
963 try {if (UT.Code.stringValid(rName = aStack.getUnlocalizedName())) return rName.toString();} catch (Throwable e) {/*Do nothing*/}
964 return item_(aStack) + "." + meta_(aStack);
965 }
966 public static String configNames(ItemStack... aStacks) {
967 String rString = "";
968 for (ItemStack tStack : aStacks) rString += (tStack == null ? "null;" : configName(tStack) + ";");

Callers 3

configNamesMethod · 0.95
configNameMethod · 0.95
getMethod · 0.95

Calls 7

invalidMethod · 0.95
item_Method · 0.95
meta_Method · 0.95
getAssociation_Method · 0.80
stringValidMethod · 0.80
toStringMethod · 0.45
getUnlocalizedNameMethod · 0.45

Tested by

no test coverage detected