Search in sources :

Example 1 with ActionPipeDirection

use of buildcraft.transport.statements.ActionPipeDirection in project BuildCraft by BuildCraft.

the class PipeItemsStripes method actionsActivated.

@Override
protected void actionsActivated(Collection<StatementSlot> actions) {
    super.actionsActivated(actions);
    actionDir = EnumPipePart.CENTER;
    for (StatementSlot action : actions) {
        if (action.statement instanceof ActionPipeDirection) {
            actionDir = EnumPipePart.fromFacing(((ActionPipeDirection) action.statement).direction);
            break;
        }
    }
}
Also used : StatementSlot(buildcraft.api.statements.StatementSlot) ActionPipeDirection(buildcraft.transport.statements.ActionPipeDirection)

Aggregations

StatementSlot (buildcraft.api.statements.StatementSlot)1 ActionPipeDirection (buildcraft.transport.statements.ActionPipeDirection)1