MCPcopy Create free account
hub / github.com/boazy/TWEditorEnhanced / examineItem

Method examineItem

src/main/java/InventoryPanel.java:191–221  ·  view source on GitHub ↗
(String label, DBList fieldList)

Source from the content-addressed store, hash-verified

189 }
190
191 private void examineItem(String label, DBList fieldList)
192 throws DBException, IOException
193 {
194 StringBuilder description = new StringBuilder(256);
195
196 String string = fieldList.getString("DescIdentified");
197 if (string.length() == 0) {
198 string = fieldList.getString("Description");
199 }
200 if (string.length() != 0) {
201 description.append(string);
202 }
203
204 int alchemyID = fieldList.getInteger("AlchIngredient");
205 if (alchemyID > 0) {
206 AlchemyIngredient ingredient = (AlchemyIngredient)this.ingredientsMap.get(new Integer(alchemyID));
207 if (ingredient != null) {
208 description.append("<br><ul>");
209 List substances = ingredient.getSubstances();
210 for (Object substance : substances) {
211 description.append("<li>");
212 description.append((String)substance);
213 }
214
215 description.append("</ul>");
216 }
217
218 }
219
220 ExamineDialog.showDialog(Main.mainWindow, label, description.toString());
221 }
222
223 private void removeSelectedItem()
224 throws DBException

Callers 2

examineCurrentItemMethod · 0.95
examineAvailableItemMethod · 0.95

Calls 5

getSubstancesMethod · 0.95
showDialogMethod · 0.95
getStringMethod · 0.45
getIntegerMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected