Search in sources :

Example 1 with Instance

use of buildcraft.lib.expression.node.value.NodeStateful.Instance 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());
            }
        }
    }
}
Also used : NodeUpdatable(buildcraft.lib.expression.node.value.NodeUpdatable) Instance(buildcraft.lib.expression.node.value.NodeStateful.Instance) ITickableNode(buildcraft.lib.expression.node.value.ITickableNode) NodeStateful(buildcraft.lib.expression.node.value.NodeStateful) Instance(buildcraft.lib.expression.node.value.NodeStateful.Instance)

Aggregations

ITickableNode (buildcraft.lib.expression.node.value.ITickableNode)1 NodeStateful (buildcraft.lib.expression.node.value.NodeStateful)1 Instance (buildcraft.lib.expression.node.value.NodeStateful.Instance)1 NodeUpdatable (buildcraft.lib.expression.node.value.NodeUpdatable)1