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

Method isFeatureEnabled

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

Returns true if a feature code control is enabled. @param feature The feature code control for which the value should be returned @return true if a feature code control is enabled; false otherwise

(String feature)

Source from the content-addressed store, hash-verified

9814 * @return true if a feature code control is enabled; false otherwise
9815 */
9816 public boolean isFeatureEnabled(String feature)
9817 {
9818 Boolean object = controller.get(ObjectKey.getKeyFor(Boolean.class,
9819 "*" + Objects.requireNonNull(feature)));
9820 return (object != null) && object;
9821 }
9822
9823 /**
9824 * Directly solves the given NEPFormula in context to this PlayerCharacter.

Callers 2

doFormulaSetupMethod · 0.95
getCDOMObjectListMethod · 0.95

Calls 2

getKeyForMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected