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

Method dataAdded

code/src/java/pcgen/cdom/facet/AddFacet.java:59–68  ·  view source on GitHub ↗

Drives the necessary selections for ADD tokens on a Player Character. Triggered when one of the Facets to which AddFacet listens fires a DataFacetChangeEvent to indicate a CDOMObject was added to a Player Character. @param dfce The DataFacetChangeEvent containing the information about t

(DataFacetChangeEvent<CharID, CDOMObject> dfce)

Source from the content-addressed store, hash-verified

57 * change
58 */
59 @Override
60 public void dataAdded(DataFacetChangeEvent<CharID, CDOMObject> dfce)
61 {
62 CharID id = dfce.getCharID();
63 PlayerCharacter aPC = trackingFacet.getPC(id);
64 if (!aPC.isImporting())
65 {
66 CDOMObjectUtilities.addAdds(dfce.getCDOMObject(), aPC);
67 }
68 }
69
70 /**
71 * Triggered when one of the Facets to which AddFacet listens fires a

Callers

nothing calls this directly

Calls 5

isImportingMethod · 0.95
addAddsMethod · 0.95
getCharIDMethod · 0.65
getCDOMObjectMethod · 0.65
getPCMethod · 0.45

Tested by

no test coverage detected