/** * Generates the name the same way it is displayed in the game's storage, with the refine rate and * card prefixes/suffixes. * * @return The item's detailed name. */ public static String getDetailedName(GenericItem item) { CubeString builder = new CubeString(); if (item.getRefineRate() > 0) { builder.append("+", item.getRefineRate(), " "); } builder.append(item.getName()); Integer slots = item.getItem().getSlots(); if (slots != null) { if (slots > 0) { builder.append("[", slots, "]"); } } return builder.toString(); }