MCPcopy Create free account
hub / github.com/Card-Forge/forge / fallbackToken

Method fallbackToken

forge-core/src/main/java/forge/token/TokenDb.java:147–154  ·  view source on GitHub ↗
(String name, String hostEditionCode)

Source from the content-addressed store, hash-verified

145 }
146
147 protected PaperToken fallbackToken(String name, String hostEditionCode) {
148 Date hostDate = null;
149 if (hostEditionCode != null) {
150 CardEdition host = this.editions.get(hostEditionCode);
151 if (host != null) hostDate = host.getDate();
152 }
153 return getTokenFromEditions(name, defaultEditionFilter, hostDate);
154 }
155
156 @Override
157 public PaperToken getToken(String tokenName) {

Callers 1

getTokenMethod · 0.95

Calls 3

getDateMethod · 0.95
getTokenFromEditionsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected