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

Method getBookNamed

code/src/java/pcgen/cdom/facet/SpellBookFacet.java:218–226  ·  view source on GitHub ↗

Returns the SpellBook for the given SpellBook name and the Player Character identified by the given CharID. @param id The CharID identifying the PlayerCharacter for which the SpellBook for the given name should be returned @param name The name of the SpellBook to be

(CharID id, String name)

Source from the content-addressed store, hash-verified

216 * Character identified by the given CharID
217 */
218 public SpellBook getBookNamed(CharID id, String name)
219 {
220 Map<String, SpellBook> componentMap = getCachedMap(id);
221 if (componentMap == null)
222 {
223 return null;
224 }
225 return componentMap.get(name);
226 }
227
228 /**
229 * Returns a non-null Collection of SpellBook names in this SpellBookFacet

Callers 5

dataAddedMethod · 0.95
getSpellBookByNameMethod · 0.80
updateEquipmentQtyMethod · 0.80
cloneMethod · 0.80
getSpellBookByNameMethod · 0.80

Calls 2

getCachedMapMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected