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

Method allow

code/src/java/plugin/lsttokens/add/TemplateToken.java:175–179  ·  view source on GitHub ↗
(PCTemplate choice, PlayerCharacter pc, boolean allowStack)

Source from the content-addressed store, hash-verified

173 }
174
175 @Override
176 public boolean allow(PCTemplate choice, PlayerCharacter pc, boolean allowStack)
177 {
178 return !pc.hasTemplate(choice);
179 }
180
181 @Override
182 public PCTemplate decodeChoice(LoadContext context, String s)

Callers

nothing calls this directly

Calls 1

hasTemplateMethod · 0.45

Tested by

no test coverage detected