MCPcopy Create free account
hub / github.com/PCGen/pcgen / cacheOutputIndex

Method cacheOutputIndex

code/src/java/pcgen/core/PlayerCharacter.java:2255–2265  ·  view source on GitHub ↗

Cache the output index of an automatic equipment item. @param item The equipment item.

(Equipment item)

Source from the content-addressed store, hash-verified

2253 * @param item The equipment item.
2254 */
2255 public void cacheOutputIndex(Equipment item)
2256 {
2257 if (item.isAutomatic())
2258 {
2259 if (Logging.isDebugMode())
2260 {
2261 Logging.debugPrint("Caching " + item.getKeyName() + " - " + item.getOutputIndex() + " item");
2262 }
2263 autoEquipOutputOrderCache.put(item.getKeyName(), item.getOutputIndex());
2264 }
2265 }
2266
2267 /**
2268 * Update the number of a particular equipment item the character possesses.

Callers 1

parseEquipmentLineMethod · 0.80

Calls 6

isDebugModeMethod · 0.95
debugPrintMethod · 0.95
getOutputIndexMethod · 0.80
isAutomaticMethod · 0.65
getKeyNameMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected