}
@Override
public boolean isTriggerActive(TileEntity tile, ForgeDirection side, IStatementContainer container, IStatementParameter[] parameters) {
if (tile instanceof IHasWork) {
IHasWork machine = (IHasWork) tile;
if (active) {
return machine.hasWork();
} else {
return !machine.hasWork();
}
}
return false;
}