MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / canCastTo0

Method canCastTo0

common/buildcraft/lib/expression/api/ArgType.java:21–36  ·  view source on GitHub ↗
(ArgType other)

Source from the content-addressed store, hash-verified

19 }
20
21 private boolean canCastTo0(ArgType other) {
22 if (this == other) {
23 return true;
24 }
25 switch (this) {
26 case BOOL:
27 return other == ArgType.STRING;
28 case DOUBLE:
29 return other == ArgType.STRING;
30 case LONG:
31 return other == ArgType.DOUBLE || other == ArgType.STRING;
32 case STRING:
33 default:
34 return false;
35 }
36 }
37}

Callers 1

canCastToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected