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

Method canCastTo

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

Source from the content-addressed store, hash-verified

9 STRING;
10
11 public boolean canCastTo(ArgType other) {
12 boolean ans = canCastTo0(other);
13 if (ans) {
14 GenericExpressionCompiler.debugPrintln("Can cast from " + this + " to " + other);
15 } else {
16 GenericExpressionCompiler.debugPrintln("NO CASTING FROM " + this + " TO " + other + " EVER!");
17 }
18 return ans;
19 }
20
21 private boolean canCastTo0(ArgType other) {
22 if (this == other) {

Callers 1

canCastToMethod · 0.95

Calls 2

canCastTo0Method · 0.95
debugPrintlnMethod · 0.95

Tested by

no test coverage detected