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

Method initialize

code/src/java/plugin/primitive/pobject/FeatToken.java:49–60  ·  view source on GitHub ↗
(LoadContext context, Class<T> cl, String value, String args)

Source from the content-addressed store, hash-verified

47 private Class<T> refClass;
48
49 @Override
50 public boolean initialize(LoadContext context, Class<T> cl, String value, String args)
51 {
52 Logging.deprecationPrint("FEAT=x is deprecated in CHOOSE, " + "please use ABILITY=FEAT[x]");
53 if (args != null)
54 {
55 return false;
56 }
57 ref = context.getReferenceContext().getManufacturerId(AbilityCategory.FEAT).getReference(value);
58 refClass = cl;
59 return true;
60 }
61
62 @Override
63 public String getTokenName()

Callers

nothing calls this directly

Calls 4

deprecationPrintMethod · 0.95
getReferenceMethod · 0.65
getReferenceContextMethod · 0.65
getManufacturerIdMethod · 0.45

Tested by

no test coverage detected