use of buildcraft.lib.expression.node.value.ITickableNode in project BuildCraft by BuildCraft.
the class ModelVariableData method addDebugInfo.
public void addDebugInfo(List<String> to) {
if (tickableNodes != null) {
for (ITickableNode node : tickableNodes) {
if (node instanceof NodeUpdatable) {
NodeUpdatable nU = (NodeUpdatable) node;
to.add(" " + nU.name + " = " + nU.variable.evaluateAsString());
} else if (node instanceof NodeStateful.Instance) {
NodeStateful.Instance nS = (Instance) node;
to.add(" " + nS.getContainer().name + " = " + nS.storedVar.evaluateAsString());
}
}
}
}
Aggregations